Skip to content

Commit 2721fc7

Browse files
Jiri Slaby (SUSE)gregkh
authored andcommitted
serial: 8250: rename lsr_TEMT, iir_NOINT to lowercase
There are already variables like 'iir_noint1' and 'iir_noint2'. Follow the preexisting lowercase naming of variables. So s/lsr_TEMT/lsr_temt/ and 'iir_NOINT' likewise. Signed-off-by: "Jiri Slaby (SUSE)" <[email protected]> Suggested-by: Ilpo Järvinen <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent ff446fb commit 2721fc7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

drivers/tty/serial/8250/8250_port.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2233,15 +2233,15 @@ static void serial8250_init_mctrl(struct uart_port *port)
22332233
static void serial8250_iir_txen_test(struct uart_port *port)
22342234
{
22352235
struct uart_8250_port *up = up_to_u8250p(port);
2236-
bool lsr_TEMT, iir_NOINT;
2236+
bool lsr_temt, iir_noint;
22372237

22382238
if (port->quirks & UPQ_NO_TXEN_TEST)
22392239
return;
22402240

22412241
/* Do a quick test to see if we receive an interrupt when we enable the TX irq. */
22422242
serial_port_out(port, UART_IER, UART_IER_THRI);
2243-
lsr_TEMT = serial_port_in(port, UART_LSR) & UART_LSR_TEMT;
2244-
iir_NOINT = serial_port_in(port, UART_IIR) & UART_IIR_NO_INT;
2243+
lsr_temt = serial_port_in(port, UART_LSR) & UART_LSR_TEMT;
2244+
iir_noint = serial_port_in(port, UART_IIR) & UART_IIR_NO_INT;
22452245
serial_port_out(port, UART_IER, 0);
22462246

22472247
/*
@@ -2253,7 +2253,7 @@ static void serial8250_iir_txen_test(struct uart_port *port)
22532253
* variable. So, in case of UPQ_NO_TXEN_TEST, let's just don't test if we receive TX irq.
22542254
* This way, we'll never enable UART_BUG_TXEN.
22552255
*/
2256-
if (lsr_TEMT && iir_NOINT) {
2256+
if (lsr_temt && iir_noint) {
22572257
if (!(up->bugs & UART_BUG_TXEN)) {
22582258
up->bugs |= UART_BUG_TXEN;
22592259
dev_dbg(port->dev, "enabling bad tx status workarounds\n");

0 commit comments

Comments
 (0)