serial: use container_of to resolve uart_sunzilog_port from uart_port
authorFabian Frederick <[email protected]>
Sun, 5 Oct 2014 17:19:48 +0000 (19:19 +0200)
committerGreg Kroah-Hartman <[email protected]>
Thu, 6 Nov 2014 03:20:53 +0000 (19:20 -0800)
commit6f414130e8605920d78827e2bbf79a5ce7d25e4a
tree2b9add3853c3cf925e1ba6dec8ca585f2c52c73b
parentafc5438b4cc1082fc1ad6b729b15d26d327e70f2
serial: use container_of to resolve uart_sunzilog_port from uart_port

Use container_of instead of casting first structure member.

Signed-off-by: Fabian Frederick <[email protected]>
Acked-by: David S. Miller <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/tty/serial/sunzilog.c