diff options
author | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2015-01-20 17:56:03 -0500 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-01-27 10:39:42 -0500 |
commit | 100832abf065bc186ae48165c16546784b90a4be (patch) | |
tree | 2c61406ba75310395682841280323d2b0256dee0 /drivers/usb/isp1760/isp1760-udc.h | |
parent | 7ef077a8ad3557f030d0407c4f56c5a0cf1e418a (diff) |
usb: isp1760: Make HCD support optional
Enable compilation of the isp1760 driver in pure host mode, pure device
mode, or dual-role mode.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/isp1760/isp1760-udc.h')
-rw-r--r-- | drivers/usb/isp1760/isp1760-udc.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/isp1760/isp1760-udc.h b/drivers/usb/isp1760/isp1760-udc.h index 4af6ba6eda86..26899ed81145 100644 --- a/drivers/usb/isp1760/isp1760-udc.h +++ b/drivers/usb/isp1760/isp1760-udc.h | |||
@@ -62,7 +62,7 @@ struct isp1760_ep { | |||
62 | * connected: Tracks gadget driver bus connection state | 62 | * connected: Tracks gadget driver bus connection state |
63 | */ | 63 | */ |
64 | struct isp1760_udc { | 64 | struct isp1760_udc { |
65 | #if CONFIG_USB_ISP1761_UDC | 65 | #ifdef CONFIG_USB_ISP1761_UDC |
66 | struct isp1760_device *isp; | 66 | struct isp1760_device *isp; |
67 | 67 | ||
68 | int irq; | 68 | int irq; |
@@ -87,7 +87,7 @@ struct isp1760_udc { | |||
87 | #endif | 87 | #endif |
88 | }; | 88 | }; |
89 | 89 | ||
90 | #if CONFIG_USB_ISP1761_UDC | 90 | #ifdef CONFIG_USB_ISP1761_UDC |
91 | int isp1760_udc_register(struct isp1760_device *isp, int irq, | 91 | int isp1760_udc_register(struct isp1760_device *isp, int irq, |
92 | unsigned long irqflags); | 92 | unsigned long irqflags); |
93 | void isp1760_udc_unregister(struct isp1760_device *isp); | 93 | void isp1760_udc_unregister(struct isp1760_device *isp); |