usb.c: Fix devices using non-primary interface descriptor
A fair number of USB devices (keyboards in particular) use an
other than the first available, making them non-functional currently.
To correct this, iterate through all available interface descriptors
until one with the correct class/subclass is found, then proceed to set the
configuration and setup the driver.
Tested on an ultimate hacking keyboard (UHK 60)
Signed-off-by: Matt DeVillier <firstname.lastname@example.org>
1 file changed