From: Ivo van Doorn Date: Mon, 16 Jun 2008 17:57:11 +0000 (+0200) Subject: rt2x00: Fix sparse warning on nested container_of() X-Git-Tag: v2.6.27-rc1~969^2~254^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c1d35dfa0f7d75ba14c442143a9ad8e232d3edfb;p=pandora-kernel.git rt2x00: Fix sparse warning on nested container_of() Sparse produces warnings about nested contain_of() statements, this means that lines like: interface_to_usbdev(to_usb_interface(rt2x00dev->dev)); will upset sparse. Add a new macro to rt2x00usb.h which will convert to device structure to the usb_device pointer in 2 steps to prevent this sparse warning. Signed-off-by: Ivo van Doorn Signed-off-by: John W. Linville --- Reading git-diff-tree failed