summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/composite.c
diff options
context:
space:
mode:
authorRobert Baldyga <r.baldyga@samsung.com>2015-09-16 12:10:39 +0200
committerFelipe Balbi <balbi@ti.com>2015-09-27 17:54:31 +0200
commitf871cb9b2e178667a351a6fae9d930826ec10e95 (patch)
treeae63ed0f9892cc58112cb011b0ec9892ea03b8d0 /drivers/usb/gadget/composite.c
parentusb: gadget: dummy_hcd: replace timeval with timespec64 (diff)
downloadlinux-f871cb9b2e178667a351a6fae9d930826ec10e95.tar.xz
linux-f871cb9b2e178667a351a6fae9d930826ec10e95.zip
usb: gadget: fix few outdated comments
Fix comments in code to make them up to date. composite: claiming endpoint is now done by setting ep->claimed flag, not ep->driver_data. epautoconf: usb_ep_autoconfig() and usb_ep_autoconfig_ss() return claimed endpoint with ep->claimed flag already set. Signed-off-by: Robert Baldyga <r.baldyga@samsung.com> Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'drivers/usb/gadget/composite.c')
-rw-r--r--drivers/usb/gadget/composite.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/usb/gadget/composite.c b/drivers/usb/gadget/composite.c
index b474499839d3..3e95c0e88b8b 100644
--- a/drivers/usb/gadget/composite.c
+++ b/drivers/usb/gadget/composite.c
@@ -839,9 +839,7 @@ int usb_add_config(struct usb_composite_dev *cdev,
}
}
- /* set_alt(), or next bind(), sets up
- * ep->driver_data as needed.
- */
+ /* set_alt(), or next bind(), sets up ep->claimed as needed */
usb_ep_autoconfig_reset(cdev->gadget);
done: