diff options
author | Michael Brown | 2015-02-09 14:37:34 +0100 |
---|---|---|
committer | Michael Brown | 2015-02-09 15:46:22 +0100 |
commit | a60f2ddfeb2b7e20f1902181c5d35c58f186c475 (patch) | |
tree | 8ab9fd75609b0193d4343d26753e8dacd87f9abb /src/include | |
parent | [ncm] Reserve headroom in received packets (diff) | |
download | ipxe-a60f2ddfeb2b7e20f1902181c5d35c58f186c475.tar.gz ipxe-a60f2ddfeb2b7e20f1902181c5d35c58f186c475.tar.xz ipxe-a60f2ddfeb2b7e20f1902181c5d35c58f186c475.zip |
[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 <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/ipxe/usb.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/include/ipxe/usb.h b/src/include/ipxe/usb.h index 5faa8dc2..acc8391f 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 ); } /** |