serial: sprd: correct the wrong sequence of arguments
Subsystems (2)
Chunyan Zhang
reviewerPATCH 1/1 serial: sprd: correct the wrong sequence of arguments
From: Chunyan Zhang <[email protected]>
The sequence of arguments which was passed to handle_lsr_errors() didn't match the parameters defined in that function, &lsr was passed to flag and &flag was passed to lsr, this patch fixed that.
Fixes b7396a38fb28 ("tty/serial: Add Spreadtrum sc9836-uart driver support")
Signed-off-by Chunyan Zhang <[email protected]>
Signed-off-by Chunyan Zhang <[email protected]>
--- drivers/tty/serial/sprd_serial.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/tty/serial/sprd_serial.c +1 -1
@@ -609,7 +609,7 @@ static inline void sprd_rx(struct uart_port *port)if (lsr & (SPRD_LSR_BI |SPRD_LSR_PE |SPRD_LSR_FE |SPRD_LSR_OE )) -if (handle_lsr_errors (port, &lsr, &flag)) +if (handle_lsr_errors (port, &flag, &lsr))continue ;if (uart_handle_sysrq_char (port, ch))continue ;
Signature · 1 line
2.20.1