From: Nithin Sujir Date: Wed, 6 Mar 2013 17:02:32 +0000 (+0000) Subject: tg3: Cleanup firmware parsing code X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~65^2~550^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77997ea3f4ac84e6275bc3d6051956eee54f901a;p=pandora-kernel.git tg3: Cleanup firmware parsing code The current firmware header parsing is complicated due to interpreting it as a u32 array and accessing header members via array offsets. Add tg3_firmware_hdr structure to access the firmware fields instead of hardcoding offsets. The same header format will be used for individual firmware fragments in the 57766. The fw_hdr and tg3 structures have all the information required for loading the fw. Remove the redundant fw_info structure and pass fw_hdr instead. Reviewed-by: Benjamin Li Signed-off-by: Nithin Nayak Sujir Signed-off-by: Michael Chan Signed-off-by: David S. Miller --- Reading git-diff-tree failed