diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2012-09-07 11:53:17 +0400 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2012-09-10 16:35:41 +0400 |
commit | ffe0b335062505a98d7296dae2c2a197713f87e0 (patch) | |
tree | c2fe75a9711026ee65409034dd71579bad64a801 /include/linux/usb/composite.h | |
parent | e220ff75db3c1195814c2ad5ada11f71b011d000 (diff) | |
download | linux-ffe0b335062505a98d7296dae2c2a197713f87e0.tar.xz |
usb: gadget: remove global variable composite in composite.c
This patch removes the global variable composite in composite.c.
The private data which was saved there is now passed via an additional
argument to the bind() function in struct usb_gadget_driver.
Only the "old-style" UDC drivers have to be touched here, new style are
doing it right because this change is made in udc-core.
Acked-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'include/linux/usb/composite.h')
-rw-r--r-- | include/linux/usb/composite.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/usb/composite.h b/include/linux/usb/composite.h index 19a5adf18bf4..43d6b9ca51b7 100644 --- a/include/linux/usb/composite.h +++ b/include/linux/usb/composite.h @@ -303,6 +303,7 @@ struct usb_composite_driver { /* global suspend hooks */ void (*suspend)(struct usb_composite_dev *); void (*resume)(struct usb_composite_dev *); + struct usb_gadget_driver gadget_driver; }; extern int usb_composite_probe(struct usb_composite_driver *driver); |