serial: fsl_lpuart: Remove custom frame size calculation
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 30 Aug 2022 08:49:23 +0000 (11:49 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2022 12:28:33 +0000 (14:28 +0200)
commitd4be10c816ba58c37e2a0fee626c9ad5772555fb
treed758a61562f2f36192951b23fee72b305471ec27
parentd9ad71a2fb6a14c4966328c362d3af801dc4ae73
serial: fsl_lpuart: Remove custom frame size calculation

The number of bits can be calculated using tty_get_frame_size(), no
need for the driver to do it on its own. Change bits to unsigned and
baud too since we're touching the declarations line anyway (the
respective core functions are typed unsigned).

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20220830084925.5608-4-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/fsl_lpuart.c