]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: simplify CONFIG_CMD_USB_MASS_STORAGE dependencies
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sat, 21 Sep 2024 09:20:50 +0000 (11:20 +0200)
committerMattijs Korpershoek <mkorpershoek@baylibre.com>
Thu, 3 Oct 2024 08:01:35 +0000 (10:01 +0200)
CONFIG_USB_GADGET_DOWNLOAD depends on CONFIG_USB_GADGET.
It is sufficient to depend on the prior.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Reviewed-by: Caleb Connolly <caleb.connolly@linaro.org>
Link: https://lore.kernel.org/r/20240921092050.9260-1-heinrich.schuchardt@canonical.com
Signed-off-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
cmd/Kconfig

index 5ef3c8a87488b51124f931c77adea6623f45c569..d50f6396fc754cf126cdfeeddea8be778976fcee 100644 (file)
@@ -1685,9 +1685,8 @@ config CMD_ROCKUSB
 
 config CMD_USB_MASS_STORAGE
        bool "UMS usb mass storage"
-       depends on USB_GADGET_DOWNLOAD
+       depends on BLK && USB_GADGET_DOWNLOAD
        select USB_FUNCTION_MASS_STORAGE
-       depends on BLK && USB_GADGET
        help
          Enables the command "ums" and the USB mass storage support to the
          export a block device: U-Boot, the USB device, acts as a simple