]> git.baikalelectronics.ru Git - kernel.git/commit
serial: cpm_uart: Remove custom frame size calculation
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 30 Aug 2022 08:49:22 +0000 (11:49 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2022 12:28:33 +0000 (14:28 +0200)
commiteb475d1e985b3569ca4e294dd5c390b72f2e103e
tree4849d90ed0a2074bf9d98608f1944c679ff4153e
parentc7a3a2a5406291bf4c5d34d64973988d90af24d5
serial: cpm_uart: Remove custom frame size calculation

The number of bits can be calculated using helpers in core, no need for
the driver to do it on its own.

The mode register is programmed with frame bits minus 1, rearrange the
comments related to that "feature" closer to the actual write.

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-3-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/cpm_uart/cpm_uart_core.c