aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/m66592-udc.h
diff options
context:
space:
mode:
authorFelipe Balbi <balbi@ti.com>2013-01-24 10:49:17 +0200
committerFelipe Balbi <balbi@ti.com>2013-01-24 21:11:29 +0200
commit3381fb602d4ae0a6388ba336a29bf999c1744cd6 (patch)
treebea5fa0a0f32ce940b2f40bfc708ee0ec040facc /drivers/usb/gadget/m66592-udc.h
parenteb65796ef161f1b2f959a6ab4b818976054b235d (diff)
usb: gadget: m66592-udc: 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/m66592-udc.h')
-rw-r--r--drivers/usb/gadget/m66592-udc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/gadget/m66592-udc.h b/drivers/usb/gadget/m66592-udc.h
index 16c7e14678b..96d49d7bfb6 100644
--- a/drivers/usb/gadget/m66592-udc.h
+++ b/drivers/usb/gadget/m66592-udc.h
@@ -492,6 +492,7 @@ struct m66592 {
int isochronous;
int num_dma;
};
+#define to_m66592(g) (container_of((g), struct m66592, gadget))
#define gadget_to_m66592(_gadget) container_of(_gadget, struct m66592, gadget)
#define m66592_to_gadget(m66592) (&m66592->gadget)