]> git.karo-electronics.de Git - linux-beck.git/commit
usb: gadget: get rid of USB_GADGET_{DUAL,SUPER}SPEED
authorMichal Nazarewicz <mina86@mina86.com>
Fri, 24 Aug 2012 18:46:18 +0000 (20:46 +0200)
committerFelipe Balbi <balbi@ti.com>
Fri, 31 Aug 2012 09:49:40 +0000 (12:49 +0300)
commit85b8614d722389202af298e1bf8a599c431fef19
tree45eeda8dbd200d26dd044dab4417292e3d687c92
parent86bab36662d47388102ca437a3cbfd79e0ea75cd
usb: gadget: get rid of USB_GADGET_{DUAL,SUPER}SPEED

This commit removes USB_GADGET_DUALSPEED and USB_GADGET_SUPERSPEED
Kconfig options.  Since now kernel allows many UDC drivers to be
compiled, those options may turn to no longer be valid.  For
instance, if someone decides to build UDC that supports super
speed and UDC that supports high speed only, the latter will be
"assumed" to support super speed since USB_GADGET_SUPERSPEED will
be selected by the former.

The test of whether CONFIG_USB_GADGET_*SPEED was defined was just
an optimisation which removed otherwise dead code (ie. if UDC is
not dual speed, there is no need to handle cases that can happen
if speed is high).  This commit removes those checks.

Signed-off-by: Michal Nazarewicz <mina86@mina86.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/chipidea/Kconfig
drivers/usb/dwc3/Kconfig
drivers/usb/gadget/Kconfig
drivers/usb/gadget/composite.c
drivers/usb/gadget/inode.c
drivers/usb/gadget/u_ether.c
drivers/usb/musb/Kconfig
include/linux/usb/gadget.h