commit | 2c7f098916e3eb5473724d0653eca9f446997915 | [log] [tgz] |
---|---|---|
author | Felipe Balbi <balbi@ti.com> | Sat Oct 08 13:17:34 2011 +0300 |
committer | Felipe Balbi <balbi@ti.com> | Thu Oct 13 20:39:55 2011 +0300 |
tree | 159aa03ea84483a2065ad15f257f907929dc82bc | |
parent | 5bc639fc55b51f828b20747eb1c48a669053b1e5 [diff] [blame] |
usb: gadget: langwell: convert to new style with this patch we can finally remove the global "the_controller" pointer. Signed-off-by: Felipe Balbi <balbi@ti.com>
diff --git a/drivers/usb/gadget/langwell_udc.h b/drivers/usb/gadget/langwell_udc.h index 1bec66f..ef79e24 100644 --- a/drivers/usb/gadget/langwell_udc.h +++ b/drivers/usb/gadget/langwell_udc.h
@@ -221,3 +221,5 @@ u16 dev_status; }; +#define gadget_to_langwell(g) container_of((g), struct langwell_udc, gadget) +