Commit ed8c8e1e authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Greg Kroah-Hartman

serial: sh-sci: Improve type-safety calling sci_receive_chars()

While ptr and port both point to the uart_port structure, the former is
the untyped pointer cookie passed to interrupt handlers.
Use the correctly typed port variable instead, to improve type-safety.
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: default avatarUlrich Hecht <uli+renesas@fpond.eu>
Reviewed-by: default avatarSimon Horman <horms+renesas@verge.net.au>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 65102238
...@@ -1693,7 +1693,7 @@ static irqreturn_t sci_rx_interrupt(int irq, void *ptr) ...@@ -1693,7 +1693,7 @@ static irqreturn_t sci_rx_interrupt(int irq, void *ptr)
* of whether the I_IXOFF is set, otherwise, how is the interrupt * of whether the I_IXOFF is set, otherwise, how is the interrupt
* to be disabled? * to be disabled?
*/ */
sci_receive_chars(ptr); sci_receive_chars(port);
return IRQ_HANDLED; return IRQ_HANDLED;
} }
...@@ -1749,7 +1749,7 @@ static irqreturn_t sci_er_interrupt(int irq, void *ptr) ...@@ -1749,7 +1749,7 @@ static irqreturn_t sci_er_interrupt(int irq, void *ptr)
} else { } else {
sci_handle_fifo_overrun(port); sci_handle_fifo_overrun(port);
if (!s->chan_rx) if (!s->chan_rx)
sci_receive_chars(ptr); sci_receive_chars(port);
} }
sci_clear_SCxSR(port, SCxSR_ERROR_CLEAR(port)); sci_clear_SCxSR(port, SCxSR_ERROR_CLEAR(port));
......
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