]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
serial: pnx8xxx: use container_of to resolve pnx8xxx_port from uart_port
authorFabian Frederick <fabf@skynet.be>
Sun, 5 Oct 2014 17:19:47 +0000 (19:19 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 03:20:53 +0000 (19:20 -0800)
commitafc5438b4cc1082fc1ad6b729b15d26d327e70f2
treef3e8ac6bdbf27e1a61deb954fe7ed5645b2e322a
parentb70e5e9d717faa334bf33c232c763be3f673138e
serial: pnx8xxx: use container_of to resolve pnx8xxx_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/pnx8xxx_uart.c