diff options
author | Michael Brown <mcb30@ipxe.org> | 2015-02-09 13:37:34 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2015-02-09 14:46:22 +0000 |
commit | a60f2ddfeb2b7e20f1902181c5d35c58f186c475 (patch) | |
tree | 8ab9fd75609b0193d4343d26753e8dacd87f9abb /src/include/ipxe/usb.h | |
parent | 2e72d100af2d4f7720a64cb157c72e3fc714e4e2 (diff) | |
download | ipxe-a60f2ddfeb2b7e20f1902181c5d35c58f186c475.tar.gz |
[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/ipxe/usb.h')
-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 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 ); } /** |