usb: gadget: s3c-hsudc: remove the_controller global
authorHeiko Stübner <heiko@sntech.de>
Mon, 19 Dec 2011 18:43:35 +0000 (19:43 +0100)
committerFelipe Balbi <balbi@ti.com>
Wed, 21 Dec 2011 11:24:42 +0000 (13:24 +0200)
commit922be95a3f2669b4a9ef526ff3c7ba71c00cbf9e
treead98209435c6a450fbf129fa57025d019ac2d2e6
parentdee19be7d8ed428e701331f9428d14d2701589f5
usb: gadget: s3c-hsudc: remove the_controller global

Instead use container_of to retrieve the s3c_hsudc from the
struct usb_gadget pointer.

[ balbi@ti.com : changed verbose container_of() into
an already provided helper 'to_hsudc()' ]

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/s3c-hsudc.c