Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mxser: make mxser_port::ldisc_stop_rx a bool

It's used only as a yes-no variable, so make it a bool and switch the
set values appropriately.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210922075938.31390-3-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby and committed by
Greg Kroah-Hartman
19236287 7d5006d5

+4 -4
+4 -4
drivers/tty/mxser.c
··· 250 250 u8 IER; /* Interrupt Enable Register */ 251 251 u8 MCR; /* Modem control register */ 252 252 253 - unsigned char ldisc_stop_rx; 253 + bool ldisc_stop_rx; 254 254 255 255 struct async_icount icount; /* kernel counters for 4 input interrupts */ 256 256 unsigned int timeout; ··· 1341 1341 { 1342 1342 struct mxser_port *info = tty->driver_data; 1343 1343 1344 - info->ldisc_stop_rx = 1; 1344 + info->ldisc_stop_rx = true; 1345 1345 if (I_IXOFF(tty)) { 1346 1346 if (info->board->must_hwid) { 1347 1347 info->IER &= ~MOXA_MUST_RECV_ISR; ··· 1374 1374 struct mxser_port *info = tty->driver_data; 1375 1375 1376 1376 /* startrx */ 1377 - info->ldisc_stop_rx = 0; 1377 + info->ldisc_stop_rx = false; 1378 1378 if (I_IXOFF(tty)) { 1379 1379 if (info->x_char) 1380 1380 info->x_char = 0; ··· 1849 1849 tty_port_init(&info->port); 1850 1850 info->port.ops = &mxser_port_ops; 1851 1851 info->board = brd; 1852 - info->ldisc_stop_rx = 0; 1852 + info->ldisc_stop_rx = false; 1853 1853 1854 1854 /* Enhance mode enabled here */ 1855 1855 if (brd->must_hwid != MOXA_OTHER_UART)