UPSTREAM: usb: dwc3: gadget: Fix truncated cast issue
[firefly-linux-kernel-4.4.55.git] / drivers / usb / gadget / Kconfig
index 33834aa09ed43be03b0dd0ad418febf0ca25432d..5cf6802b02ae72987146734461f43570a355bf46 100644 (file)
@@ -199,6 +199,18 @@ config USB_F_HID
 config USB_F_PRINTER
        tristate
 
 config USB_F_PRINTER
        tristate
 
+config USB_F_MTP
+       tristate
+
+config USB_F_PTP
+        tristate
+
+config USB_F_AUDIO_SRC
+       tristate
+
+config USB_F_ACC
+       tristate
+
 choice
        tristate "USB Gadget Drivers"
        default USB_ETH
 choice
        tristate "USB Gadget Drivers"
        default USB_ETH
@@ -371,6 +383,44 @@ config USB_CONFIGFS_F_FS
          implemented in kernel space (for instance Ethernet, serial or
          mass storage) and other are implemented in user space.
 
          implemented in kernel space (for instance Ethernet, serial or
          mass storage) and other are implemented in user space.
 
+config USB_CONFIGFS_F_MTP
+       boolean "MTP gadget"
+       depends on USB_CONFIGFS
+       select USB_F_MTP
+       help
+         USB gadget MTP support
+
+config USB_CONFIGFS_F_PTP
+       boolean "PTP gadget"
+       depends on USB_CONFIGFS && USB_CONFIGFS_F_MTP
+       select USB_F_PTP
+       help
+         USB gadget PTP support
+
+config USB_CONFIGFS_F_ACC
+       boolean "Accessory gadget"
+       depends on USB_CONFIGFS
+       select USB_F_ACC
+       help
+         USB gadget Accessory support
+
+config USB_CONFIGFS_F_AUDIO_SRC
+       boolean "Audio Source gadget"
+       depends on USB_CONFIGFS && USB_CONFIGFS_F_ACC
+       depends on SND
+       select SND_PCM
+       select USB_F_AUDIO_SRC
+       help
+         USB gadget Audio Source support
+
+config USB_CONFIGFS_UEVENT
+       boolean "Uevent notification of Gadget state"
+       depends on USB_CONFIGFS
+       help
+         Enable uevent notifications to userspace when the gadget
+         state changes. The gadget can be in any of the following
+         three states: "CONNECTED/DISCONNECTED/CONFIGURED"
+
 config USB_CONFIGFS_F_UAC1
        bool "Audio Class 1.0"
        depends on USB_CONFIGFS
 config USB_CONFIGFS_F_UAC1
        bool "Audio Class 1.0"
        depends on USB_CONFIGFS