linux/drivers/usb/gadget/legacy
Robert Baldyga 5cd22f80bc usb: gadget: legacy: tcm: eliminate abuse of ep->driver data
Since ep->driver_data is not used for endpoint claiming, neither for
enabled/disabled state storing, we can reduce number of places where
we read or modify it's value, as now it has no particular meaning for
function or framework logic.

In case of tcm, ep->driver_data was used only for endpoint claiming so
we can simplify code by reducing it. We also remove give_back_ep()
function which is not needed after all - when error code is returned
from bind() function, composite will release all endpoints anyway.

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
2015-09-27 10:54:31 -05:00
..
acm_ms.c usb: gadget: mass_storage: Use static array for luns 2015-07-31 09:01:19 -05:00
audio.c usb: gadget: remove gadget_chips.h 2015-08-06 09:35:20 -05:00
cdc2.c usb: gadget: cdc2: allocate and init otg descriptor by otg capabilities 2015-07-29 09:59:21 -05:00
dbgp.c usb: gadget: legacy: dbgp: eliminate abuse of ep->driver data 2015-09-27 10:54:31 -05:00
ether.c usb: gadget: ether: allocate and init otg descriptor by otg capabilities 2015-07-29 09:59:21 -05:00
g_ffs.c usb: gadget: g_ffs: allocate and init otg descriptor by otg capabilities 2015-07-29 09:59:21 -05:00
gmidi.c usb: gadget: remove gadget_chips.h 2015-08-06 09:35:20 -05:00
hid.c usb: gadget: remove gadget_chips.h 2015-08-06 09:35:20 -05:00
inode.c USB: inode.c: move assignment out of if () block 2015-05-10 16:01:11 +02:00
Kconfig usb: gadget: legacy: nokia: add CONFIG_BLOCK dependency 2015-08-06 11:29:19 -05:00
Makefile usb: gadget: webcam: convert webcam to new interface of f_uvc 2014-09-09 09:49:31 -05:00
mass_storage.c usb: gadget: mass_storage: Use static array for luns 2015-07-31 09:01:19 -05:00
multi.c usb: gadget: mass_storage: Use static array for luns 2015-07-31 09:01:19 -05:00
ncm.c usb: gadget: ncm: allocate and init otg descriptor by otg capabilities 2015-07-29 09:59:22 -05:00
nokia.c usb: gadget: remove gadget_chips.h 2015-08-06 09:35:20 -05:00
printer.c usb: gadget: remove gadget_chips.h 2015-08-06 09:35:20 -05:00
serial.c usb: gadget: remove gadget_chips.h 2015-08-06 09:35:20 -05:00
tcm_usb_gadget.c usb: gadget: legacy: tcm: eliminate abuse of ep->driver data 2015-09-27 10:54:31 -05:00
tcm_usb_gadget.h Merge branch 'for-next' of git://git.kernel.org/pub/scm/linux/kernel/git/nab/target-pending 2015-07-04 14:13:43 -07:00
webcam.c usb: gadget: remove incorrect __init/__exit annotations 2015-04-27 14:45:35 -05:00
zero.c usb: gadget: zero: allocate and init otg descriptor by otg capabilities 2015-07-29 09:59:22 -05:00