]> git.baikalelectronics.ru Git - kernel.git/commit
serial: sh-sci: Improve type-safety calling sci_receive_chars()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Wed, 7 Nov 2018 13:37:31 +0000 (14:37 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 9 Nov 2018 12:37:00 +0000 (04:37 -0800)
commit8d5f1838e76d04ea4f518d23d2bf39e9526e3b87
tree074eb24dd46ef2315d6d3716c5a26544659a58ff
parenta9e80a095d95d1159b26f73bd6d9c2fadc7fb411
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: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Ulrich Hecht <uli+renesas@fpond.eu>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c