]> git.baikalelectronics.ru Git - kernel.git/commit
serial: sa1100: use container_of to resolve sa1100_port from uart_port
authorFabian Frederick <fabf@skynet.be>
Sun, 5 Oct 2014 17:01:03 +0000 (19:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 03:20:52 +0000 (19:20 -0800)
commitf92aaa28a4204b1f8e72036768de628b2886c551
tree610835bf6ed0bd15127b979a371484e04e17d91b
parentf1fbb39b4de8c911f9766628c30e7550f8b57dbd
serial: sa1100: use container_of to resolve sa1100_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/sa1100.c