8250: use container_of() instead of casting
authorJamie Iles <jamie@jamieiles.com>
Wed, 1 Dec 2010 23:39:35 +0000 (23:39 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 10 Dec 2010 23:19:37 +0000 (15:19 -0800)
The 8250 driver structure uart_8250_port took advantage of the fact
that the struct uart_port was the first member of its structure and
used an explicit cast to convert to the derived class. Replace the
explicit casts with container_of() for safety and clarity.

Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found