aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/g_zero.h
diff options
context:
space:
mode:
authorDavid Brownell <dbrownell@users.sourceforge.net>2008-06-19 17:55:35 -0700
committerGreg Kroah-Hartman <gregkh@suse.de>2008-07-21 15:16:03 -0700
commite5760fdac8c8aeca060d1afc8a233ea3d7a46720 (patch)
tree2845c06bf7415f12cc52aff3ffe41dd28b22a7ec /drivers/usb/gadget/g_zero.h
parenta400cadc0774c31f67c419a835d80ba611128c2a (diff)
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 2781221b946..dd2f16ad5a8 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 */