From: Jamie Iles Date: Wed, 1 Dec 2010 23:39:35 +0000 (+0000) Subject: 8250: use container_of() instead of casting X-Git-Tag: v2.6.38-rc1~464^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49d5741be27aa90301b89bf254972b355ed9c8ee;p=pandora-kernel.git 8250: use container_of() instead of casting 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed