summaryrefslogtreecommitdiffstats
path: root/include/usb/gadget.h
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-09-26 08:34:50 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-09-26 21:36:54 +0200
commit18d588da7422ea9f35d5c71b34467b60dacdaa20 (patch)
treec8ae45d127bf30868110f3bdcbd8dd41b87cc7f0 /include/usb/gadget.h
parent01beb0d5f2538a57ec7757d2cc2849765ab41d4f (diff)
downloadbarebox-18d588da7422ea9f35d5c71b34467b60dacdaa20.tar.gz
barebox-18d588da7422ea9f35d5c71b34467b60dacdaa20.tar.xz
USB: gadget: put poller into core
Instead of letting each driver implement usb_gadget_poll directly implement this function in the core which then calls into the drivers. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/usb/gadget.h')
-rw-r--r--include/usb/gadget.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/usb/gadget.h b/include/usb/gadget.h
index 7106f9d788..f663e98abf 100644
--- a/include/usb/gadget.h
+++ b/include/usb/gadget.h
@@ -483,6 +483,7 @@ struct usb_gadget_ops {
struct usb_gadget_driver *);
int (*udc_stop)(struct usb_gadget *,
struct usb_gadget_driver *);
+ void (*udc_poll)(struct usb_gadget *);
};
/**