]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
leds: Move pwm-multicolor driver into rgb directory
authorSven Schwermer <sven.schwermer@disruptive-technologies.com>
Wed, 4 May 2022 18:49:46 +0000 (20:49 +0200)
committerPavel Machek <pavel@ucw.cz>
Sat, 7 May 2022 21:09:31 +0000 (23:09 +0200)
The drivers/leds/rgb subdirectory is relatively fresh, so we move this
new PWM multi-color driver into it.

Signed-off-by: Sven Schwermer <sven.schwermer@disruptive-technologies.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/Kconfig
drivers/leds/Makefile
drivers/leds/rgb/Kconfig
drivers/leds/rgb/Makefile
drivers/leds/rgb/leds-pwm-multicolor.c [moved from drivers/leds/leds-pwm-multicolor.c with 100% similarity]

index ea4481000bfe3df8a4950879f172dd0c45ce71ea..a49979f41eee76967c1abb008e51f1209f64e3ed 100644 (file)
@@ -552,17 +552,6 @@ config LEDS_PWM
        help
          This option enables support for pwm driven LEDs
 
-config LEDS_PWM_MULTICOLOR
-       tristate "PWM driven multi-color LED Support"
-       depends on LEDS_CLASS_MULTICOLOR
-       depends on PWM
-       help
-         This option enables support for PWM driven monochrome LEDs that are
-         grouped into multicolor LEDs.
-
-         To compile this driver as a module, choose M here: the module
-         will be called leds-pwm-multicolor.
-
 config LEDS_REGULATOR
        tristate "REGULATOR driven LED support"
        depends on LEDS_CLASS
index c6a147865705c4d9e2da9c5f82787872e6b8b20b..4fd2f92cd19811c29c84ce395237fa0e8c9b59c8 100644 (file)
@@ -73,7 +73,6 @@ obj-$(CONFIG_LEDS_PCA963X)            += leds-pca963x.o
 obj-$(CONFIG_LEDS_PM8058)              += leds-pm8058.o
 obj-$(CONFIG_LEDS_POWERNV)             += leds-powernv.o
 obj-$(CONFIG_LEDS_PWM)                 += leds-pwm.o
-obj-$(CONFIG_LEDS_PWM_MULTICOLOR)      += leds-pwm-multicolor.o
 obj-$(CONFIG_LEDS_REGULATOR)           += leds-regulator.o
 obj-$(CONFIG_LEDS_S3C24XX)             += leds-s3c24xx.o
 obj-$(CONFIG_LEDS_SC27XX_BLTC)         += leds-sc27xx-bltc.o
index 5dd27ad808562f917fbd61fd17c36b2648506e63..63fd40b257ec50f52eff52633af899a078a56213 100644 (file)
@@ -2,6 +2,16 @@
 
 if LEDS_CLASS_MULTICOLOR
 
+config LEDS_PWM_MULTICOLOR
+       tristate "PWM driven multi-color LED Support"
+       depends on PWM
+       help
+         This option enables support for PWM driven monochrome LEDs that are
+         grouped into multicolor LEDs.
+
+         To compile this driver as a module, choose M here: the module
+         will be called leds-pwm-multicolor.
+
 config LEDS_QCOM_LPG
        tristate "LED support for Qualcomm LPG"
        depends on OF
index 83114f44c4eaec404f74e0239a759555385e0f7d..0675bc0f6e18f87f5022ac245cb0b7769d5037b9 100644 (file)
@@ -1,3 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0
 
-obj-$(CONFIG_LEDS_QCOM_LPG)    += leds-qcom-lpg.o
+obj-$(CONFIG_LEDS_PWM_MULTICOLOR)      += leds-pwm-multicolor.o
+obj-$(CONFIG_LEDS_QCOM_LPG)            += leds-qcom-lpg.o