diff options
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | 2014-10-08 12:03:36 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-11-03 10:00:59 -0600 |
commit | 3a571870856f63064a3a45d7ffa2526d597b7fbe (patch) | |
tree | 7472ce5bc174da9cc758433d374a4feeee087824 /include/linux/usb/composite.h | |
parent | 60b388befb42d1e90a8594cdcfe80dbf57542ac0 (diff) | |
download | talos-obmc-linux-3a571870856f63064a3a45d7ffa2526d597b7fbe.tar.gz talos-obmc-linux-3a571870856f63064a3a45d7ffa2526d597b7fbe.zip |
usb: gadget: configfs: add suspend/resume
USB gadgets composed with configfs lack suspend and resume
methods. This patch uses composite_suspend()/composite_resume()
the same way e.g. composite_setup() or composite_disconnect()
are used in a configfs-based gadget.
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'include/linux/usb/composite.h')
-rw-r--r-- | include/linux/usb/composite.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h index ed3811c09ec1..3d87defcc527 100644 --- a/include/linux/usb/composite.h +++ b/include/linux/usb/composite.h @@ -506,6 +506,8 @@ extern int usb_string_ids_n(struct usb_composite_dev *c, unsigned n); extern void composite_disconnect(struct usb_gadget *gadget); extern int composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl); +extern void composite_suspend(struct usb_gadget *gadget); +extern void composite_resume(struct usb_gadget *gadget); /* * Some systems will need runtime overrides for the product identifiers |