leds: ktd2692: Move driver to flash subdirectory
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 28 May 2021 20:24:04 +0000 (22:24 +0200)
committerPavel Machek <pavel@ucw.cz>
Mon, 12 Jul 2021 08:30:06 +0000 (10:30 +0200)
We created a subdirectory for LED drivers that depend on
CONFIG_LEDS_CLASS_FLASH, and this driver does so let's
move it there.

Cc: Ingi Kim <ingi2.kim@samsung.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/Kconfig
drivers/leds/Makefile
drivers/leds/flash/Kconfig
drivers/leds/flash/Makefile
drivers/leds/flash/leds-ktd2692.c [moved from drivers/leds/leds-ktd2692.c with 100% similarity]

index 1671aa2..da7773d 100644 (file)
@@ -702,16 +702,6 @@ config LEDS_MENF21BMC
          This driver can also be built as a module. If so the module
          will be called leds-menf21bmc.
 
-config LEDS_KTD2692
-       tristate "LED support for KTD2692 flash LED controller"
-       depends on LEDS_CLASS_FLASH && OF
-       depends on GPIOLIB || COMPILE_TEST
-       help
-         This option enables support for KTD2692 LED flash connected
-         through ExpressWire interface.
-
-         Say Y to enable this driver.
-
 config LEDS_IS31FL319X
        tristate "LED Support for ISSI IS31FL319x I2C LED controller family"
        depends on LEDS_CLASS && I2C && OF
index 6d5c23a..c636ec0 100644 (file)
@@ -35,7 +35,6 @@ obj-$(CONFIG_LEDS_IP30)                       += leds-ip30.o
 obj-$(CONFIG_LEDS_IPAQ_MICRO)          += leds-ipaq-micro.o
 obj-$(CONFIG_LEDS_IS31FL319X)          += leds-is31fl319x.o
 obj-$(CONFIG_LEDS_IS31FL32XX)          += leds-is31fl32xx.o
-obj-$(CONFIG_LEDS_KTD2692)             += leds-ktd2692.o
 obj-$(CONFIG_LEDS_LM3530)              += leds-lm3530.o
 obj-$(CONFIG_LEDS_LM3532)              += leds-lm3532.o
 obj-$(CONFIG_LEDS_LM3533)              += leds-lm3533.o
index 6cb6600..b230f3d 100644 (file)
@@ -20,6 +20,16 @@ config LEDS_AS3645A
          controller. V4L2 flash API is provided as well if
          CONFIG_V4L2_FLASH_API is enabled.
 
+config LEDS_KTD2692
+       tristate "LED support for Kinetic KTD2692 flash LED controller"
+       depends on OF
+       depends on GPIOLIB || COMPILE_TEST
+       help
+         This option enables support for Kinetic KTD2692 LED flash connected
+         through ExpressWire interface.
+
+         Say Y to enable this driver.
+
 config LEDS_LM3601X
        tristate "LED support for LM3601x Chips"
        depends on LEDS_CLASS && I2C
index 6755632..ebea42f 100644 (file)
@@ -2,6 +2,7 @@
 
 obj-$(CONFIG_LEDS_AAT1290)     += leds-aat1290.o
 obj-$(CONFIG_LEDS_AS3645A)     += leds-as3645a.o
+obj-$(CONFIG_LEDS_KTD2692)     += leds-ktd2692.o
 obj-$(CONFIG_LEDS_LM3601X)     += leds-lm3601x.o
 obj-$(CONFIG_LEDS_MAX77693)    += leds-max77693.o
 obj-$(CONFIG_LEDS_RT4505)      += leds-rt4505.o