diff options
author | Robert Baldyga <r.baldyga@samsung.com> | 2015-09-16 12:10:44 +0200 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2015-09-27 10:54:31 -0500 |
commit | 4aab757ca44ad8f9d629c4bf5a513e94cff9aeb1 (patch) | |
tree | 84365b4db3e2b24edce54f38fa334a6870860675 /mm/mmu_context.c | |
parent | 92fbfc3884733a4deae313169ef4eca20c0e6e72 (diff) | |
download | op-kernel-dev-4aab757ca44ad8f9d629c4bf5a513e94cff9aeb1.zip op-kernel-dev-4aab757ca44ad8f9d629c4bf5a513e94cff9aeb1.tar.gz |
usb: gadget: f_acm: 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 f_acm we only need to store in ep->driver_data pointer to
struct f_acm, as it's used in acm_complete_set_line_coding() callback.
All other uses of ep->driver_data are now meaningless and can be safely
removed.
Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'mm/mmu_context.c')
0 files changed, 0 insertions, 0 deletions