]> git.baikalelectronics.ru Git - kernel.git/commit
tty: ar933x_uart: use container_of to resolve ar933x_uart_port from uart_port
authorFabian Frederick <fabf@skynet.be>
Sun, 5 Oct 2014 17:19:49 +0000 (19:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 03:20:53 +0000 (19:20 -0800)
commit9e2f31f792064720e919c326064e13120969ba04
tree4aaa87417d59a9cc039332753786824adabb73cc
parente03ea180bec57f5d456a600a78f37d8568a2f29d
tty: ar933x_uart: use container_of to resolve ar933x_uart_port from uart_port

Use container_of instead of casting first structure member.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/ar933x_uart.c