diff options
Diffstat (limited to 'include/linux/usb/gadget.h')
-rw-r--r-- | include/linux/usb/gadget.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index c540557b564b..598a6e9b2850 100644 --- a/include/linux/usb/gadget.h +++ b/include/linux/usb/gadget.h | |||
@@ -817,6 +817,8 @@ static inline int usb_gadget_disconnect(struct usb_gadget *gadget) | |||
817 | * Called in a context that permits sleeping. | 817 | * Called in a context that permits sleeping. |
818 | * @suspend: Invoked on USB suspend. May be called in_interrupt. | 818 | * @suspend: Invoked on USB suspend. May be called in_interrupt. |
819 | * @resume: Invoked on USB resume. May be called in_interrupt. | 819 | * @resume: Invoked on USB resume. May be called in_interrupt. |
820 | * @reset: Invoked on USB bus reset. It is mandatory for all gadget drivers | ||
821 | * and should be called in_interrupt. | ||
820 | * @driver: Driver model state for this driver. | 822 | * @driver: Driver model state for this driver. |
821 | * | 823 | * |
822 | * Devices are disabled till a gadget driver successfully bind()s, which | 824 | * Devices are disabled till a gadget driver successfully bind()s, which |
@@ -874,6 +876,7 @@ struct usb_gadget_driver { | |||
874 | void (*disconnect)(struct usb_gadget *); | 876 | void (*disconnect)(struct usb_gadget *); |
875 | void (*suspend)(struct usb_gadget *); | 877 | void (*suspend)(struct usb_gadget *); |
876 | void (*resume)(struct usb_gadget *); | 878 | void (*resume)(struct usb_gadget *); |
879 | void (*reset)(struct usb_gadget *); | ||
877 | 880 | ||
878 | /* FIXME support safe rmmod */ | 881 | /* FIXME support safe rmmod */ |
879 | struct device_driver driver; | 882 | struct device_driver driver; |