Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Robert Baldyga and committed by
Felipe Balbi
f871cb9b 04c4d8d4

+5 -7
+1 -3
drivers/usb/gadget/composite.c
··· 839 839 } 840 840 } 841 841 842 - /* set_alt(), or next bind(), sets up 843 - * ep->driver_data as needed. 844 - */ 842 + /* set_alt(), or next bind(), sets up ep->claimed as needed */ 845 843 usb_ep_autoconfig_reset(cdev->gadget); 846 844 847 845 done:
+4 -4
drivers/usb/gadget/epautoconf.c
··· 53 53 * the restrictions that may apply. Some combinations of driver 54 54 * and hardware won't be able to autoconfigure. 55 55 * 56 - * On success, this returns an un-claimed usb_ep, and modifies the endpoint 56 + * On success, this returns an claimed usb_ep, and modifies the endpoint 57 57 * descriptor bEndpointAddress. For bulk endpoints, the wMaxPacket value 58 58 * is initialized as if the endpoint were used at full speed and 59 59 * the bmAttribute field in the ep companion descriptor is 60 60 * updated with the assigned number of streams if it is 61 61 * different from the original value. To prevent the endpoint 62 - * from being returned by a later autoconfig call, claim it by 62 + * from being returned by a later autoconfig call, claims it by 63 63 * assigning ep->claimed to true. 64 64 * 65 65 * On failure, this returns a null endpoint descriptor. ··· 154 154 * USB controller, and it can't know all the restrictions that may apply. 155 155 * Some combinations of driver and hardware won't be able to autoconfigure. 156 156 * 157 - * On success, this returns an un-claimed usb_ep, and modifies the endpoint 157 + * On success, this returns an claimed usb_ep, and modifies the endpoint 158 158 * descriptor bEndpointAddress. For bulk endpoints, the wMaxPacket value 159 159 * is initialized as if the endpoint were used at full speed. To prevent 160 - * the endpoint from being returned by a later autoconfig call, claim it 160 + * the endpoint from being returned by a later autoconfig call, claims it 161 161 * by assigning ep->claimed to true. 162 162 * 163 163 * On failure, this returns a null endpoint descriptor.