From: Sarah Sharp Date: Thu, 3 Dec 2009 17:44:34 +0000 (-0800) Subject: USB: Refactor code to find alternate interface settings. X-Git-Tag: v2.6.33-rc1~315^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91017f9cf5fcfb601b8d583c896ac7de7d200c57;p=pandora-kernel.git USB: Refactor code to find alternate interface settings. Refactor out the code to find alternate interface settings into usb_find_alt_setting(). Print a debugging message and return null if the alt setting is not found. While we're at it, correct a bug in the refactored code. The interfaces in the configuration's interface cache are not necessarily in numerical order, so we can't just use the interface number as an array index. Loop through the interface caches, looking for the correct interface. Signed-off-by: Sarah Sharp Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed