diff options
author | Felipe Balbi <balbi@ti.com> | 2011-10-08 10:17:34 (GMT) |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2011-10-13 17:39:55 (GMT) |
commit | 2c7f098916e3eb5473724d0653eca9f446997915 (patch) | |
tree | 159aa03ea84483a2065ad15f257f907929dc82bc /drivers/usb/gadget/langwell_udc.h | |
parent | 5bc639fc55b51f828b20747eb1c48a669053b1e5 (diff) | |
download | linux-fsl-qoriq-2c7f098916e3eb5473724d0653eca9f446997915.tar.xz |
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>
Diffstat (limited to 'drivers/usb/gadget/langwell_udc.h')
-rw-r--r-- | drivers/usb/gadget/langwell_udc.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 @@ struct langwell_udc { u16 dev_status; }; +#define gadget_to_langwell(g) container_of((g), struct langwell_udc, gadget) + |