]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
serial: cpm_uart: use container_of to resolve uart_cpm_port from uart_port
authorFabian Frederick <fabf@skynet.be>
Sun, 5 Oct 2014 17:01:06 +0000 (19:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Nov 2014 03:20:52 +0000 (19:20 -0800)
commite789d2688720dba26079aac3e008eb6e78937753
tree3ea629ebf317d6256e92a34954d4f2aff9c06d47
parent22d4d44c4ce3a860377aaaeeb4a7b8b907ab66bc
serial: cpm_uart: use container_of to resolve uart_cpm_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/cpm_uart/cpm_uart_core.c