OSDN Git Service

USB: dummy-hcd: Adapt dummy_udc_set_speed()
authorRoger Quadros <rogerq@ti.com>
Thu, 2 Nov 2017 09:09:17 +0000 (11:09 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 11 Dec 2017 10:36:52 +0000 (12:36 +0200)
commitd855e08cf623835bc3208209cd9ab32d6c710162
treed1786065c4c44408f8bbccbcab29461419316afa
parent8ea409044ca0f8504b69ece3ef69191aa846090b
USB: dummy-hcd: Adapt dummy_udc_set_speed()

The UDC core ensures that .udc_set_speed() is called with
a speed that is a minimum of the max speeds supported
by the gadget function driver and the UDC driver.

We can now use the speed argument as is.

Get rid of the debug print as that condition will never happen.

Acked-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Roger Quadros <rogerq@ti.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/dummy_hcd.c