diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2006-08-21 12:08:19 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-09-27 14:58:55 -0400 |
commit | 088dc270e1da03744d977cbd9edd4311af142348 (patch) | |
tree | 92ccfd907137f2135857bea8a43981b040028d37 /include/linux | |
parent | 3a3416b12f1fbd607bc137a57c924a628aa5485c (diff) |
usbcore: help drivers to change device configs
It's generally a bad idea for USB interface drivers to try to change a
device's configuration, and usbcore doesn't provide any way for them
to do it. However in a few exceptional circumstances it can make
sense. This patch (as767) adds a roundabout mechanism to help drivers
that may need it.
Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux')
-rw-r--r-- | include/linux/usb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/usb.h b/include/linux/usb.h index 26d8a5f36896..f104efa04d79 100644 --- a/include/linux/usb.h +++ b/include/linux/usb.h | |||
@@ -1099,6 +1099,9 @@ extern int usb_clear_halt(struct usb_device *dev, int pipe); | |||
1099 | extern int usb_reset_configuration(struct usb_device *dev); | 1099 | extern int usb_reset_configuration(struct usb_device *dev); |
1100 | extern int usb_set_interface(struct usb_device *dev, int ifnum, int alternate); | 1100 | extern int usb_set_interface(struct usb_device *dev, int ifnum, int alternate); |
1101 | 1101 | ||
1102 | /* this request isn't really synchronous, but it belongs with the others */ | ||
1103 | extern int usb_driver_set_configuration(struct usb_device *udev, int config); | ||
1104 | |||
1102 | /* | 1105 | /* |
1103 | * timeouts, in milliseconds, used for sending/receiving control messages | 1106 | * timeouts, in milliseconds, used for sending/receiving control messages |
1104 | * they typically complete within a few frames (msec) after they're issued | 1107 | * they typically complete within a few frames (msec) after they're issued |