aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/goku_udc.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/goku_udc.h')
-rw-r--r--drivers/usb/gadget/goku_udc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/goku_udc.h b/drivers/usb/gadget/goku_udc.h
index 85cdce0d190..b4470d2b1d8 100644
--- a/drivers/usb/gadget/goku_udc.h
+++ b/drivers/usb/gadget/goku_udc.h
@@ -261,6 +261,7 @@ struct goku_udc {
/* statistics... */
unsigned long irqs;
};
+#define to_goku_udc(g) (container_of((g), struct goku_udc, gadget))
/*-------------------------------------------------------------------------*/