diff options
author | Robert Baldyga <r.baldyga@samsung.com> | 2015-09-16 13:11:04 +0300 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-09-27 18:54:31 +0300 |
commit | 5cd22f80bc0c10e3005dad5e2903504b431bbe0e (patch) | |
tree | e307229bf3034b382a7a64dbdb9fcc710f285f35 /include/linux/usb/phy.h | |
parent | 4ce86bfaa62f7f044701b796f1ee84e80308457f (diff) | |
download | linux-5cd22f80bc0c10e3005dad5e2903504b431bbe0e.tar.xz |
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>
Diffstat (limited to 'include/linux/usb/phy.h')
0 files changed, 0 insertions, 0 deletions