summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/fusb300_udc.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/fusb300_udc.h')
-rw-r--r--drivers/usb/gadget/fusb300_udc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/gadget/fusb300_udc.h b/drivers/usb/gadget/fusb300_udc.h
index 542cd83..6ba444a 100644
--- a/drivers/usb/gadget/fusb300_udc.h
+++ b/drivers/usb/gadget/fusb300_udc.h
@@ -673,4 +673,6 @@ struct fusb300 {
u8 reenum; /* if re-enumeration */
};
+#define to_fusb300(g) (container_of((g), struct fusb300, gadget))
+
#endif
OpenPOWER on IntegriCloud