Commit 75b20a2a authored by Ilpo Järvinen's avatar Ilpo Järvinen Committed by Greg Kroah-Hartman

tty: Cleamup tty_port_set_suspended() bool parameter

Make callers pass true/false consistently for bool val.
Reviewed-by: default avatarJiri Slaby <jirislaby@kernel.org>
Signed-off-by: default avatarIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Link: https://lore.kernel.org/r/20230117090358.4796-3-ilpo.jarvinen@linux.intel.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 515be7ba
...@@ -312,7 +312,7 @@ static void uart_shutdown(struct tty_struct *tty, struct uart_state *state) ...@@ -312,7 +312,7 @@ static void uart_shutdown(struct tty_struct *tty, struct uart_state *state)
* a DCD drop (hangup) at just the right time. Clear suspended bit so * a DCD drop (hangup) at just the right time. Clear suspended bit so
* we don't try to resume a port that has been shutdown. * we don't try to resume a port that has been shutdown.
*/ */
tty_port_set_suspended(port, 0); tty_port_set_suspended(port, false);
/* /*
* Do not free() the transmit buffer page under the port lock since * Do not free() the transmit buffer page under the port lock since
...@@ -1725,7 +1725,7 @@ static void uart_tty_port_shutdown(struct tty_port *port) ...@@ -1725,7 +1725,7 @@ static void uart_tty_port_shutdown(struct tty_port *port)
* a DCD drop (hangup) at just the right time. Clear suspended bit so * a DCD drop (hangup) at just the right time. Clear suspended bit so
* we don't try to resume a port that has been shutdown. * we don't try to resume a port that has been shutdown.
*/ */
tty_port_set_suspended(port, 0); tty_port_set_suspended(port, false);
/* /*
* Free the transmit buffer. * Free the transmit buffer.
...@@ -2346,7 +2346,7 @@ int uart_suspend_port(struct uart_driver *drv, struct uart_port *uport) ...@@ -2346,7 +2346,7 @@ int uart_suspend_port(struct uart_driver *drv, struct uart_port *uport)
int tries; int tries;
unsigned int mctrl; unsigned int mctrl;
tty_port_set_suspended(port, 1); tty_port_set_suspended(port, true);
tty_port_set_initialized(port, false); tty_port_set_initialized(port, false);
spin_lock_irq(&uport->lock); spin_lock_irq(&uport->lock);
...@@ -2469,7 +2469,7 @@ int uart_resume_port(struct uart_driver *drv, struct uart_port *uport) ...@@ -2469,7 +2469,7 @@ int uart_resume_port(struct uart_driver *drv, struct uart_port *uport)
} }
} }
tty_port_set_suspended(port, 0); tty_port_set_suspended(port, false);
} }
mutex_unlock(&port->mutex); mutex_unlock(&port->mutex);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment