Commit e5760fda authored by David Brownell's avatar David Brownell Committed by Greg Kroah-Hartman

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: default avatarDavid Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent a400cadc
This diff is collapsed.
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include <linux/usb/composite.h> #include <linux/usb/composite.h>
/* global state */ /* global state */
extern unsigned buflen;
extern const struct usb_descriptor_header *otg_desc[]; extern const struct usb_descriptor_header *otg_desc[];
/* common utilities */ /* common utilities */
...@@ -19,5 +20,6 @@ void disable_endpoints(struct usb_composite_dev *cdev, ...@@ -19,5 +20,6 @@ void disable_endpoints(struct usb_composite_dev *cdev,
/* configuration-specific linkup */ /* configuration-specific linkup */
int sourcesink_add(struct usb_composite_dev *cdev); int sourcesink_add(struct usb_composite_dev *cdev);
int loopback_add(struct usb_composite_dev *cdev);
#endif /* __G_ZERO_H */ #endif /* __G_ZERO_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment