TTY: jsm: use container_of to resolve jsm_channel from uart_port
authorFabian Frederick <fabf@skynet.be>
Sun, 5 Oct 2014 17:01:07 +0000 (19:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 03:20:52 +0000 (19:20 -0800)
commita15ad34834b1b29459ae87b0f04489d0765259e8
treec66c34e889c08b87b94cb0c062479da9d8dd8a36
parente789d2688720dba26079aac3e008eb6e78937753
TTY: jsm: use container_of to resolve jsm_channel 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/jsm/jsm_tty.c