diff options
author | David S. Miller <davem@davemloft.net> | 2010-09-09 02:49:04 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-09 02:49:04 -0400 |
commit | e199e6136ce6b151e6638ae93dca60748424d900 (patch) | |
tree | 0d66e0b5d227c36b005e4f5537f4bbcfc6ed4904 /include/linux/usb/composite.h | |
parent | 972c40b5bee429c84ba727f8ac0a08292bc5dc3d (diff) | |
parent | d56557af19867edb8c0e96f8e26399698a08857f (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'include/linux/usb/composite.h')
-rw-r--r-- | include/linux/usb/composite.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h index 139353efad34..617068134ae8 100644 --- a/include/linux/usb/composite.h +++ b/include/linux/usb/composite.h | |||
@@ -247,6 +247,7 @@ int usb_add_config(struct usb_composite_dev *, | |||
247 | * value; it should return zero on successful initialization. | 247 | * value; it should return zero on successful initialization. |
248 | * @unbind: Reverses @bind(); called as a side effect of unregistering | 248 | * @unbind: Reverses @bind(); called as a side effect of unregistering |
249 | * this driver. | 249 | * this driver. |
250 | * @disconnect: optional driver disconnect method | ||
250 | * @suspend: Notifies when the host stops sending USB traffic, | 251 | * @suspend: Notifies when the host stops sending USB traffic, |
251 | * after function notifications | 252 | * after function notifications |
252 | * @resume: Notifies configuration when the host restarts USB traffic, | 253 | * @resume: Notifies configuration when the host restarts USB traffic, |
@@ -276,6 +277,8 @@ struct usb_composite_driver { | |||
276 | int (*bind)(struct usb_composite_dev *); | 277 | int (*bind)(struct usb_composite_dev *); |
277 | int (*unbind)(struct usb_composite_dev *); | 278 | int (*unbind)(struct usb_composite_dev *); |
278 | 279 | ||
280 | void (*disconnect)(struct usb_composite_dev *); | ||
281 | |||
279 | /* global suspend hooks */ | 282 | /* global suspend hooks */ |
280 | void (*suspend)(struct usb_composite_dev *); | 283 | void (*suspend)(struct usb_composite_dev *); |
281 | void (*resume)(struct usb_composite_dev *); | 284 | void (*resume)(struct usb_composite_dev *); |
@@ -342,6 +345,10 @@ struct usb_composite_dev { | |||
342 | }; | 345 | }; |
343 | 346 | ||
344 | extern int usb_string_id(struct usb_composite_dev *c); | 347 | extern int usb_string_id(struct usb_composite_dev *c); |
348 | extern int usb_string_ids_tab(struct usb_composite_dev *c, | ||
349 | struct usb_string *str); | ||
350 | extern int usb_string_ids_n(struct usb_composite_dev *c, unsigned n); | ||
351 | |||
345 | 352 | ||
346 | /* messaging utils */ | 353 | /* messaging utils */ |
347 | #define DBG(d, fmt, args...) \ | 354 | #define DBG(d, fmt, args...) \ |