OSDN Git Service

serial: Make uart_handle_cts_change() status param bool active
authorIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Tue, 17 Jan 2023 09:03:55 +0000 (11:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2023 15:04:35 +0000 (16:04 +0100)
commit968d64578ec92968e8c79d766eb966efd1f68d7e
tree73a49a4853804246be998054bedf4be2104576b6
parent0388a152fc5544be82e736343496f99c4eef8d62
serial: Make uart_handle_cts_change() status param bool active

Convert uart_handle_cts_change() to bool which is more appropriate
than unsigned int.

Rename status to active to better describe what the parameter means.
While at it, make the comment about the active parameter easier to
parse.

Cleanup callsites from operations that are not necessary with bool.

Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20230117090358.4796-10-ilpo.jarvinen@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c
drivers/tty/serial/max3100.c
drivers/tty/serial/max310x.c
drivers/tty/serial/serial_core.c
include/linux/serial_core.h