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

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)" <jirislaby@kernel.org>
Suggested-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20250624080641.509959-4-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
2721fc7a ff446fb8

+4 -4
+4 -4
drivers/tty/serial/8250/8250_port.c
··· 2233 2233 static void serial8250_iir_txen_test(struct uart_port *port) 2234 2234 { 2235 2235 struct uart_8250_port *up = up_to_u8250p(port); 2236 - bool lsr_TEMT, iir_NOINT; 2236 + bool lsr_temt, iir_noint; 2237 2237 2238 2238 if (port->quirks & UPQ_NO_TXEN_TEST) 2239 2239 return; 2240 2240 2241 2241 /* Do a quick test to see if we receive an interrupt when we enable the TX irq. */ 2242 2242 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; 2245 2245 serial_port_out(port, UART_IER, 0); 2246 2246 2247 2247 /* ··· 2253 2253 * variable. So, in case of UPQ_NO_TXEN_TEST, let's just don't test if we receive TX irq. 2254 2254 * This way, we'll never enable UART_BUG_TXEN. 2255 2255 */ 2256 - if (lsr_TEMT && iir_NOINT) { 2256 + if (lsr_temt && iir_noint) { 2257 2257 if (!(up->bugs & UART_BUG_TXEN)) { 2258 2258 up->bugs |= UART_BUG_TXEN; 2259 2259 dev_dbg(port->dev, "enabling bad tx status workarounds\n");