• Dong Aisheng's avatar
    tty: serial: lpuart: refactor lpuart32_{read|write} prototype · a0204f25
    Dong Aisheng authored
    Due to the original lpuart32_read/write takes no port specific
    information arguments, it's hard to distinguish port difference
    within the API. Although it works before, but not suitable anymore
    when adding more new chips support.
    
    So let's convert it to accept a new struct uart_port argument
    to make it be able to retrieve more port specific information.
    This is a preparation for the later adding new chips support
    more easily. No functions changes.
    
    Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    Cc: Jiri Slaby <jslaby@suse.com>
    Cc: Stefan Agner <stefan@agner.ch>
    Cc: Mingkai Hu <Mingkai.Hu@nxp.com>
    Cc: Yangbo Lu <yangbo.lu@nxp.com>
    Cc: Fugang Duan <fugang.duan@nxp.com>
    Cc: Andy Shevchenko <andy.shevchenko@gmail.com>
    Cc: Nikita Yushchenko <nikita.yoush@cogentembedded.com>
    Signed-off-by: default avatarDong Aisheng <aisheng.dong@nxp.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    a0204f25
fsl_lpuart.c 57.1 KB