From: Jiri Slaby Date: Wed, 4 Nov 2009 16:28:12 +0000 (-0800) Subject: isdn: eicon: Use offsetof X-Git-Tag: v2.6.32-rc7~58^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ea70841f07666af69e481d4ffdd6edb56db3c92;p=pandora-kernel.git isdn: eicon: Use offsetof Use offsetof instead of explicit implementation. * fixes bug with omitted & like: len = (byte)(((T30_INFO *) 0)->station_id + 20) * avoids compiler warnings with wrong sizes (pointer-to-char cast): len = (byte)(&(((T30_INFO *) 0)->universal_6)); * cleans up the code Signed-off-by: Jiri Slaby Cc: Karsten Keil Acked-by: Armin Schindler Signed-off-by: Andrew Morton Signed-off-by: David S. Miller --- Reading git-diff-tree failed