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