summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/g_zero.h
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2008-06-20 02:55:35 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2008-07-22 00:16:03 +0200
commite5760fdac8c8aeca060d1afc8a233ea3d7a46720 (patch)
tree2845c06bf7415f12cc52aff3ffe41dd28b22a7ec /drivers/usb/gadget/g_zero.h
parentusb gadget zero: split out source/sink config (diff)
downloadlinux-e5760fdac8c8aeca060d1afc8a233ea3d7a46720.tar.xz
linux-e5760fdac8c8aeca060d1afc8a233ea3d7a46720.zip
usb gadget zero: split out loopback config
This splits the gadget zero "loopback" configuration into a standalone "configuration driver", building on the composite gadget framework code. It doesn't yet pull the original code out of gadget zero or update how that driver is built. Signed-off-by: David Brownell <dbrownell@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/gadget/g_zero.h')
-rw-r--r--drivers/usb/gadget/g_zero.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/g_zero.h b/drivers/usb/gadget/g_zero.h
index 2781221b9469..dd2f16ad5a88 100644
--- a/drivers/usb/gadget/g_zero.h
+++ b/drivers/usb/gadget/g_zero.h
@@ -9,6 +9,7 @@
#include <linux/usb/composite.h>
/* global state */
+extern unsigned buflen;
extern const struct usb_descriptor_header *otg_desc[];
/* common utilities */
@@ -19,5 +20,6 @@ void disable_endpoints(struct usb_composite_dev *cdev,
/* configuration-specific linkup */
int sourcesink_add(struct usb_composite_dev *cdev);
+int loopback_add(struct usb_composite_dev *cdev);
#endif /* __G_ZERO_H */