summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/amd5536udc.h
diff options
context:
space:
mode:
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 14af87d65caa..f1bf32e6b8d8 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];
OpenPOWER on IntegriCloud