From: Maciej W. Rozycki Date: Thu, 7 Feb 2008 08:15:15 +0000 (-0800) Subject: dz.c: Use a helper to cast from "struct uart_port *" X-Git-Tag: v2.6.25-rc1~400 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5519caad5c1828b2ab6d14bd9e7a8e047db12e3;p=pandora-kernel.git dz.c: Use a helper to cast from "struct uart_port *" Replace all casts from "struct uart_port *" to "struct dz_port *" with a construct based on container_of(). This makes the conversion work irrespective of where the former struct is located within the latter. By popular request I have implemented it as an inline function rather than a macro this time. Signed-off-by: Maciej W. Rozycki Cc: Ralf Baechle Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed