aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/usb
diff options
context:
space:
mode:
authorMichal Nazarewicz <m.nazarewicz@samsung.com>2010-06-16 06:07:59 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2010-08-10 17:35:36 -0400
commitf2adc4f8aaf272de9ac71dcb18d95ebe05fc3f94 (patch)
tree07b92ce8914bca169edbf5e0852a3c93bea81e4b /include/linux/usb
parent7898aee1dacbb246fee958f0a6102320b61768d9 (diff)
USB: gadget: composite: usb_string_ids_*() functions added
usb_string_ids_tab() and usb_string_ids_n() functions added to the composite framework. The first accepts an array of usb_string object and for each registeres a string id and the second registeres a given number of ids and returns the first. This may simplify string ids registration since gadgets and composite functions won't have to call usb_string_id() several times and each time check for errer status -- all this will be done with a single call. Signed-off-by: Michal Nazarewicz <m.nazarewicz@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/linux/usb')
-rw-r--r--include/linux/usb/composite.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h
index 139353efad34..f378075c839a 100644
--- a/include/linux/usb/composite.h
+++ b/include/linux/usb/composite.h
@@ -342,6 +342,10 @@ struct usb_composite_dev {
342}; 342};
343 343
344extern int usb_string_id(struct usb_composite_dev *c); 344extern int usb_string_id(struct usb_composite_dev *c);
345extern int usb_string_ids_tab(struct usb_composite_dev *c,
346 struct usb_string *str);
347extern int usb_string_ids_n(struct usb_composite_dev *c, unsigned n);
348
345 349
346/* messaging utils */ 350/* messaging utils */
347#define DBG(d, fmt, args...) \ 351#define DBG(d, fmt, args...) \