summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/udc/pxa27x_udc.h
diff options
context:
space:
mode:
authorRobert Jarzmik <robert.jarzmik@free.fr>2014-10-01 22:06:14 +0200
committerFelipe Balbi <balbi@ti.com>2014-11-03 10:00:57 -0600
commit2db88a76960747fb1af3757a81b94451c4bdfc49 (patch)
tree7fa8d7982913e7795305beb43a431e6ffb7f2596 /drivers/usb/gadget/udc/pxa27x_udc.h
parent420974a0ed2d9da76637c2c2dc9324850e4f9a24 (diff)
usb: gadget: pxa27x_udc: prepare device-tree support
For this preparation, a preliminary cleanup is done : - convert the probing of pxa27x_udc to gpio_desc. The conversion is partial because : - the platform data still provides a gpio number, not a gpio desc Signed-off-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/udc/pxa27x_udc.h')
-rw-r--r--drivers/usb/gadget/udc/pxa27x_udc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/udc/pxa27x_udc.h b/drivers/usb/gadget/udc/pxa27x_udc.h
index 28f2b53530f5..f02569324ee6 100644
--- a/drivers/usb/gadget/udc/pxa27x_udc.h
+++ b/drivers/usb/gadget/udc/pxa27x_udc.h
@@ -421,6 +421,7 @@ struct udc_stats {
* @driver: bound gadget (zero, g_ether, g_mass_storage, ...)
* @dev: device
* @mach: machine info, used to activate specific GPIO
+ * @gpiod: gpio descriptor of gpio for D+ pullup (or NULL if none)
* @transceiver: external transceiver to handle vbus sense and D+ pullup
* @ep0state: control endpoint state machine state
* @stats: statistics on udc usage
@@ -447,6 +448,7 @@ struct pxa_udc {
struct usb_gadget_driver *driver;
struct device *dev;
struct pxa2xx_udc_mach_info *mach;
+ struct gpio_desc *gpiod;
struct usb_phy *transceiver;
enum ep0_state ep0state;