usb: gadget: epautoconf: remove ep and desc configuration from ep_matches()
authorRobert Baldyga <r.baldyga@samsung.com>
Fri, 31 Jul 2015 14:00:51 +0000 (16:00 +0200)
committerFelipe Balbi <balbi@ti.com>
Tue, 4 Aug 2015 17:27:44 +0000 (12:27 -0500)
commit5dbe135a153837ce9367bdfacf7aabfc6fb76f4b
tree3eaec78bb7777cf991054934e933f9f642989fef
parentb58713d53a8f41d57b24c93de0b1c7e9550ba70f
usb: gadget: epautoconf: remove ep and desc configuration from ep_matches()

As function ep_matches() is used to match endpoint with usb descriptor it's
highly unintuitive that it modifies endpoint and descriptor structures fields.
This patch moves code configuring ep and desc from ep_matches() to
usb_ep_autoconfig_ss(), so now function ep_matches() does nothing more than
its name suggests.

[ balbi@ti.com : fix build warning ]

Signed-off-by: Robert Baldyga <r.baldyga@samsung.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/epautoconf.c