mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-10 12:57:06 +09:00
Revert "USB: gadget: composite: Don't increment interface number for alt settings."
This reverts commit b1d4000fe6.
This commit is contained in:
@@ -322,13 +322,8 @@ static int config_buf(struct usb_configuration *config,
|
||||
dest = next;
|
||||
while ((descriptor = *descriptors++) != NULL) {
|
||||
intf = (struct usb_interface_descriptor *)dest;
|
||||
if (intf->bDescriptorType == USB_DT_INTERFACE) {
|
||||
/* don't increment bInterfaceNumber for alternate settings */
|
||||
if (intf->bAlternateSetting == 0)
|
||||
intf->bInterfaceNumber = interfaceCount++;
|
||||
else
|
||||
intf->bInterfaceNumber = interfaceCount - 1;
|
||||
}
|
||||
if (intf->bDescriptorType == USB_DT_INTERFACE)
|
||||
intf->bInterfaceNumber = interfaceCount++;
|
||||
dest += intf->bLength;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user