summaryrefslogtreecommitdiff
path: root/drivers/usb/gadget/legacy/dbgp.c
diff options
context:
space:
mode:
authorRobert Baldyga <r.baldyga@samsung.com>2015-09-16 13:11:02 +0300
committerFelipe Balbi <balbi@ti.com>2015-09-27 18:54:31 +0300
commit18411c0f94716ec225a4f7e1d7735c80f5ec0dab (patch)
tree29ee144ea945f30eda38cc8fec0deed578f742fa /drivers/usb/gadget/legacy/dbgp.c
parent6e4bfc54083b2b0eff45ad2001f2a3bee9074dcc (diff)
downloadlinux-18411c0f94716ec225a4f7e1d7735c80f5ec0dab.tar.xz
usb: gadget: u_serial: 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 u_serial ep->driver_data stores pointer to struct gs_port, which is referenced in many places in code. Code using ep->driver_data to mark endpoint as enabled/disabled has been removed. Signed-off-by: Robert Baldyga <r.baldyga@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/legacy/dbgp.c')
0 files changed, 0 insertions, 0 deletions