]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
leds: sgm3140: Move driver to flash subdirectory
authorLinus Walleij <linus.walleij@linaro.org>
Fri, 28 May 2021 20:24:02 +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: Luca Weiss <luca@z3ntu.xyz>
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-sgm3140.c [moved from drivers/leds/leds-sgm3140.c with 100% similarity]

index 723de0d300396877423871e622a1f6a762ab2997..171ccfd4de1b4cdbb9156eda3ed8709f3c5720d5 100644 (file)
@@ -883,14 +883,6 @@ config LEDS_IP30
          To compile this driver as a module, choose M here: the module
          will be called leds-ip30.
 
-config LEDS_SGM3140
-       tristate "LED support for the SGM3140"
-       depends on LEDS_CLASS_FLASH
-       depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
-       help
-         This option enables support for the SGM3140 500mA Buck/Boost Charge
-         Pump LED Driver.
-
 config LEDS_ACER_A500
        tristate "Power button LED support for Acer Iconia Tab A500"
        depends on LEDS_CLASS && MFD_ACER_A500_EC
index 6f4aa0e6e3554f60400250cd3925584816f1c225..5e804f72b8e5509a9752c6ee4c0397f5df469e5d 100644 (file)
@@ -79,7 +79,6 @@ obj-$(CONFIG_LEDS_PWM)                        += leds-pwm.o
 obj-$(CONFIG_LEDS_REGULATOR)           += leds-regulator.o
 obj-$(CONFIG_LEDS_S3C24XX)             += leds-s3c24xx.o
 obj-$(CONFIG_LEDS_SC27XX_BLTC)         += leds-sc27xx-bltc.o
-obj-$(CONFIG_LEDS_SGM3140)             += leds-sgm3140.o
 obj-$(CONFIG_LEDS_SUNFIRE)             += leds-sunfire.o
 obj-$(CONFIG_LEDS_SYSCON)              += leds-syscon.o
 obj-$(CONFIG_LEDS_TCA6507)             += leds-tca6507.o
index 6401af23947f4e13aaa4cd34667cc380d5b50743..788d698587a7f56bd417ba445bdf8ce37a639435 100644 (file)
@@ -52,4 +52,11 @@ config LEDS_RT8515
          To compile this driver as a module, choose M here: the module
          will be called leds-rt8515.
 
+config LEDS_SGM3140
+       tristate "LED support for the SGM3140"
+       depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
+       help
+         This option enables support for the SGM3140 500mA Buck/Boost Charge
+         Pump LED Driver.
+
 endif # LEDS_CLASS_FLASH
index c2a5e530261d7fad526a437acdaf39d389adaa64..2f9153e787175604eed6da2b1f7750c3f5b3f32f 100644 (file)
@@ -5,3 +5,4 @@ obj-$(CONFIG_LEDS_AS3645A)      += leds-as3645a.o
 obj-$(CONFIG_LEDS_MAX77693)    += leds-max77693.o
 obj-$(CONFIG_LEDS_RT4505)      += leds-rt4505.o
 obj-$(CONFIG_LEDS_RT8515)      += leds-rt8515.o
+obj-$(CONFIG_LEDS_SGM3140)     += leds-sgm3140.o