diff options
author | Andrzej Pietrasiewicz <andrzej.p@samsung.com> | 2013-09-26 14:38:15 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2013-10-01 09:50:22 -0500 |
commit | 092a4bd069fcca09f345a79c8abdc945cf6b1b57 (patch) | |
tree | 762316f09bdc5a52baeecad450d275ba3f145827 /drivers/usb/gadget/configfs.h | |
parent | a346941152878d8cab198fb10ba45dd706ed5ea1 (diff) | |
download | op-kernel-dev-092a4bd069fcca09f345a79c8abdc945cf6b1b57.zip op-kernel-dev-092a4bd069fcca09f345a79c8abdc945cf6b1b57.tar.gz |
usb: gadget: configfs: add a method to unregister the gadget
Add a method to unregister the gadget using its config_item.
There can be functions (e.g. mass storage), which in some circumstances
need the gadget stopped. Add a method of stopping the gadget.
Signed-off-by: Andrzej Pietrasiewicz <andrzej.p@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/configfs.h')
-rw-r--r-- | drivers/usb/gadget/configfs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/gadget/configfs.h b/drivers/usb/gadget/configfs.h new file mode 100644 index 0000000..a7b564a --- /dev/null +++ b/drivers/usb/gadget/configfs.h @@ -0,0 +1,6 @@ +#ifndef USB__GADGET__CONFIGFS__H +#define USB__GADGET__CONFIGFS__H + +void unregister_gadget_item(struct config_item *item); + +#endif /* USB__GADGET__CONFIGFS__H */ |