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

usb: gadget: reword configuration choices

As USB_CONFIGFS is not a part of the "USB Gadget Drivers" choice
anymore, the name for the option and its attached description needs to
be more descriptive. It appears one level higher in the configuration
menu, and without the context provided by the comments for the choice
entry, it needs to make sense on its own.

Conversely, the "USB Gadget Drivers" entry now only introduces the
legacy drivers, where one or more functions are combined in a single
driver. As the configfs option can be used as a full-fledged
alternative, rename the choice entry to show that it is not the only
way to provice service as an USB gadget.

Signed-off-by: Romain Izard <romain.izard.pro@gmail.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>

authored by

Romain Izard and committed by
Felipe Balbi
bc27f66e 6e253d0f

+8 -2
+8 -2
drivers/usb/gadget/Kconfig
··· 212 212 # this first set of drivers all depend on bulk-capable hardware. 213 213 214 214 config USB_CONFIGFS 215 - tristate "USB functions configurable through configfs" 215 + tristate "USB Gadget functions configurable through configfs" 216 216 select USB_LIBCOMPOSITE 217 217 help 218 218 A Linux USB "gadget" can be set up through configfs. ··· 458 458 UAS utilizes the USB 3.0 feature called streams support. 459 459 460 460 choice 461 - tristate "USB Gadget Drivers" 461 + tristate "USB Gadget precomposed configurations" 462 462 default USB_ETH 463 463 optional 464 464 help ··· 476 476 enough of the right types of endpoints, the gadget driver might 477 477 not be able work with that controller, or might need to implement 478 478 a less common variant of a device class protocol. 479 + 480 + The available choices each represent a single precomposed USB 481 + gadget configuration. In the device model, each option contains 482 + both the device instantiation as a child for a USB gadget 483 + controller, and the relevant drivers for each function declared 484 + by the device. 479 485 480 486 source "drivers/usb/gadget/legacy/Kconfig" 481 487