diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/usb/composite.h | 4 | ||||
| -rw-r--r-- | include/linux/usb/gadget.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h index a212ec3e9d69..3c671c1b37f6 100644 --- a/include/linux/usb/composite.h +++ b/include/linux/usb/composite.h | |||
| @@ -375,6 +375,7 @@ struct usb_composite_dev { | |||
| 375 | unsigned int suspended:1; | 375 | unsigned int suspended:1; |
| 376 | struct usb_device_descriptor desc; | 376 | struct usb_device_descriptor desc; |
| 377 | struct list_head configs; | 377 | struct list_head configs; |
| 378 | struct list_head gstrings; | ||
| 378 | struct usb_composite_driver *driver; | 379 | struct usb_composite_driver *driver; |
| 379 | u8 next_string_id; | 380 | u8 next_string_id; |
| 380 | char *def_manufacturer; | 381 | char *def_manufacturer; |
| @@ -396,6 +397,9 @@ struct usb_composite_dev { | |||
| 396 | extern int usb_string_id(struct usb_composite_dev *c); | 397 | extern int usb_string_id(struct usb_composite_dev *c); |
| 397 | extern int usb_string_ids_tab(struct usb_composite_dev *c, | 398 | extern int usb_string_ids_tab(struct usb_composite_dev *c, |
| 398 | struct usb_string *str); | 399 | struct usb_string *str); |
| 400 | extern struct usb_string *usb_gstrings_attach(struct usb_composite_dev *cdev, | ||
| 401 | struct usb_gadget_strings **sp, unsigned n_strings); | ||
| 402 | |||
| 399 | extern int usb_string_ids_n(struct usb_composite_dev *c, unsigned n); | 403 | extern int usb_string_ids_n(struct usb_composite_dev *c, unsigned n); |
| 400 | 404 | ||
| 401 | extern void composite_disconnect(struct usb_gadget *gadget); | 405 | extern void composite_disconnect(struct usb_gadget *gadget); |
diff --git a/include/linux/usb/gadget.h b/include/linux/usb/gadget.h index 62156701e4f1..e4c119ee4ebe 100644 --- a/include/linux/usb/gadget.h +++ b/include/linux/usb/gadget.h | |||
| @@ -913,6 +913,11 @@ struct usb_gadget_strings { | |||
| 913 | struct usb_string *strings; | 913 | struct usb_string *strings; |
| 914 | }; | 914 | }; |
| 915 | 915 | ||
| 916 | struct usb_gadget_string_container { | ||
| 917 | struct list_head list; | ||
| 918 | u8 *stash[0]; | ||
| 919 | }; | ||
| 920 | |||
| 916 | /* put descriptor for string with that id into buf (buflen >= 256) */ | 921 | /* put descriptor for string with that id into buf (buflen >= 256) */ |
| 917 | int usb_gadget_get_string(struct usb_gadget_strings *table, int id, u8 *buf); | 922 | int usb_gadget_get_string(struct usb_gadget_strings *table, int id, u8 *buf); |
| 918 | 923 | ||
