aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/linux/usb/composite.h1
-rw-r--r--include/linux/usb/gadget.h6
2 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h
index 19a5adf18bf4..43d6b9ca51b7 100644
--- a/include/linux/usb/composite.h
+++ b/include/linux/usb/composite.h
@@ -303,6 +303,7 @@ struct usb_composite_driver {
303 /* global suspend hooks */ 303 /* global suspend hooks */
304 void (*suspend)(struct usb_composite_dev *); 304 void (*suspend)(struct usb_composite_dev *);
305 void (*resume)(struct usb_composite_dev *); 305 void (*resume)(struct usb_composite_dev *);
306 struct usb_gadget_driver gadget_driver;
306}; 307};
307 308
308extern int usb_composite_probe(struct usb_composite_driver *driver); 309extern int usb_composite_probe(struct usb_composite_driver *driver);
diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h
index 9eb4e712168f..822c1b88f95a 100644
--- a/include/linux/usb/gadget.h
+++ b/include/linux/usb/gadget.h
@@ -474,7 +474,8 @@ struct usb_gadget_ops {
474 474
475 /* Those two are deprecated */ 475 /* Those two are deprecated */
476 int (*start)(struct usb_gadget_driver *, 476 int (*start)(struct usb_gadget_driver *,
477 int (*bind)(struct usb_gadget *)); 477 int (*bind)(struct usb_gadget *,
478 struct usb_gadget_driver *driver));
478 int (*stop)(struct usb_gadget_driver *); 479 int (*stop)(struct usb_gadget_driver *);
479}; 480};
480 481
@@ -821,7 +822,8 @@ static inline int usb_gadget_disconnect(struct usb_gadget *gadget)
821struct usb_gadget_driver { 822struct usb_gadget_driver {
822 char *function; 823 char *function;
823 enum usb_device_speed max_speed; 824 enum usb_device_speed max_speed;
824 int (*bind)(struct usb_gadget *gadget); 825 int (*bind)(struct usb_gadget *gadget,
826 struct usb_gadget_driver *driver);
825 void (*unbind)(struct usb_gadget *); 827 void (*unbind)(struct usb_gadget *);
826 int (*setup)(struct usb_gadget *, 828 int (*setup)(struct usb_gadget *,
827 const struct usb_ctrlrequest *); 829 const struct usb_ctrlrequest *);