]> git.baikalelectronics.ru Git - kernel.git/commit
serial: sunsab: use container_of to resolve uart_sunsu_port from uart_port
authorFabian Frederick <fabf@skynet.be>
Sun, 5 Oct 2014 17:01:10 +0000 (19:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 03:20:52 +0000 (19:20 -0800)
commitb33d9ce26e77c634b35eda432671a7adac40fcbf
tree0ceeb7441ae120f3df4946fd066471a57f01a83b
parent7afe2ddcb91f7a23c96f506d34dae0e00d43cd6e
serial: sunsab: use container_of to resolve uart_sunsu_port from uart_port

Use container_of instead of casting first structure member.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sunsab.c