From a60f2ddfeb2b7e20f1902181c5d35c58f186c475 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Mon, 9 Feb 2015 13:37:34 +0000 Subject: [usb] Try multiple USB device configurations Iterate over a USB device's available configurations until we find one for which we have working drivers. Signed-off-by: Michael Brown --- src/include/ipxe/usb.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/include') diff --git a/src/include/ipxe/usb.h b/src/include/ipxe/usb.h index 5faa8dc20..acc8391f7 100644 --- a/src/include/ipxe/usb.h +++ b/src/include/ipxe/usb.h @@ -1034,13 +1034,13 @@ usb_get_config_descriptor ( struct usb_device *usb, unsigned int index, * Set USB configuration * * @v usb USB device - * @v config Configuration value + * @v index Configuration index * @ret rc Return status code */ static inline __attribute__ (( always_inline )) int -usb_set_configuration ( struct usb_device *usb, unsigned int config ) { +usb_set_configuration ( struct usb_device *usb, unsigned int index ) { - return usb_control ( usb, USB_SET_CONFIGURATION, config, 0, NULL, 0 ); + return usb_control ( usb, USB_SET_CONFIGURATION, index, 0, NULL, 0 ); } /** -- cgit v1.2.3-55-g7522