summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/function/f_eem.c
diff options
context:
space:
mode:
authorRobert Baldyga <r.baldyga@samsung.com>2015-09-16 12:10:44 +0200
committerFelipe Balbi <balbi@ti.com>2015-09-27 10:54:31 -0500
commit4aab757ca44ad8f9d629c4bf5a513e94cff9aeb1 (patch)
tree84365b4db3e2b24edce54f38fa334a6870860675 /drivers/usb/gadget/function/f_eem.c
parent92fbfc3884733a4deae313169ef4eca20c0e6e72 (diff)
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 'drivers/usb/gadget/function/f_eem.c')
0 files changed, 0 insertions, 0 deletions