summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/amd5536udc.h
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-01-24 10:28:39 +0200
committerFelipe Balbi <balbi@ti.com>2013-01-24 21:11:17 +0200
commit45005f6927d98d9a3364287a6e9faca7121cc8f1 (patch)
treeb617758f53576761e9b63a64d4ea84c7fce897a8 /drivers/usb/gadget/amd5536udc.h
parentaac16b6341f0022213fe828c50b7064744df86e0 (diff)
usb: gadget: amd5536udc: convert to udc_start/udc_stop
Mechanical change making use of the new (can we still call it new ?) interface for registering UDC drivers. Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/amd5536udc.h')
-rw-r--r--drivers/usb/gadget/amd5536udc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/amd5536udc.h b/drivers/usb/gadget/amd5536udc.h
index 14af87d65ca..f1bf32e6b8d 100644
--- a/drivers/usb/gadget/amd5536udc.h
+++ b/drivers/usb/gadget/amd5536udc.h
@@ -563,6 +563,8 @@ struct udc {
u16 cur_alt;
};
+#define to_amd5536_udc(g) (container_of((g), struct udc, gadget))
+
/* setup request data */
union udc_setup_data {
u32 data[2];