diff mbox series

[1/6] leds: aat1290: Move driver to flash subdirectory

Message ID 20210528202404.431859-1-linus.walleij@linaro.org
State New
Headers show
Series [1/6] leds: aat1290: Move driver to flash subdirectory | expand

Commit Message

Linus Walleij May 28, 2021, 8:23 p.m. UTC
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: Jacek Anaszewski <jacek.anaszewski@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

---
 drivers/leds/Kconfig                    | 10 ----------
 drivers/leds/Makefile                   |  1 -
 drivers/leds/flash/Kconfig              |  9 +++++++++
 drivers/leds/flash/Makefile             |  1 +
 drivers/leds/{ => flash}/leds-aat1290.c |  0
 5 files changed, 10 insertions(+), 11 deletions(-)
 rename drivers/leds/{ => flash}/leds-aat1290.c (100%)

-- 
2.31.1

Comments

Jacek Anaszewski May 31, 2021, 7:49 p.m. UTC | #1
Hi Linus,

On 5/28/21 10:23 PM, Linus Walleij wrote:
> 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: Jacek Anaszewski <jacek.anaszewski@gmail.com>

> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

> ---

>   drivers/leds/Kconfig                    | 10 ----------

>   drivers/leds/Makefile                   |  1 -

>   drivers/leds/flash/Kconfig              |  9 +++++++++

>   drivers/leds/flash/Makefile             |  1 +

>   drivers/leds/{ => flash}/leds-aat1290.c |  0

>   5 files changed, 10 insertions(+), 11 deletions(-)

>   rename drivers/leds/{ => flash}/leds-aat1290.c (100%)


For 1/6 and 3/6:

Acked-by: Jacek Anaszewski <jacek.anaszewski@gmail.com>


-- 
Best regards,
Jacek Anaszewski
Pavel Machek July 3, 2021, 8:15 p.m. UTC | #2
On Fri 2021-05-28 22:23:59, Linus Walleij wrote:
> 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: Jacek Anaszewski <jacek.anaszewski@gmail.com>

> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>


Thanks, applied.

Best regards,
								Pavel
								
-- 
http://www.livejournal.com/~pavelmachek
diff mbox series

Patch

diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig
index bdf16180f5ff..a350d8fbb085 100644
--- a/drivers/leds/Kconfig
+++ b/drivers/leds/Kconfig
@@ -59,16 +59,6 @@  config LEDS_88PM860X
 	  This option enables support for on-chip LED drivers found on Marvell
 	  Semiconductor 88PM8606 PMIC.
 
-config LEDS_AAT1290
-	tristate "LED support for the AAT1290"
-	depends on LEDS_CLASS_FLASH
-	depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
-	depends on GPIOLIB || COMPILE_TEST
-	depends on OF
-	depends on PINCTRL
-	help
-	  This option enables support for the LEDs on the AAT1290.
-
 config LEDS_AN30259A
 	tristate "LED support for Panasonic AN30259A"
 	depends on LEDS_CLASS && I2C && OF
diff --git a/drivers/leds/Makefile b/drivers/leds/Makefile
index 7e604d3028c8..c7231975837a 100644
--- a/drivers/leds/Makefile
+++ b/drivers/leds/Makefile
@@ -9,7 +9,6 @@  obj-$(CONFIG_LEDS_TRIGGERS)		+= led-triggers.o
 
 # LED Platform Drivers (keep this sorted, M-| sort)
 obj-$(CONFIG_LEDS_88PM860X)		+= leds-88pm860x.o
-obj-$(CONFIG_LEDS_AAT1290)		+= leds-aat1290.o
 obj-$(CONFIG_LEDS_ACER_A500)		+= leds-acer-a500.o
 obj-$(CONFIG_LEDS_ADP5520)		+= leds-adp5520.o
 obj-$(CONFIG_LEDS_AN30259A)		+= leds-an30259a.o
diff --git a/drivers/leds/flash/Kconfig b/drivers/leds/flash/Kconfig
index 3f49f3edbffb..736153b0bfd6 100644
--- a/drivers/leds/flash/Kconfig
+++ b/drivers/leds/flash/Kconfig
@@ -2,6 +2,15 @@ 
 
 if LEDS_CLASS_FLASH
 
+config LEDS_AAT1290
+	tristate "LED support for the AAT1290"
+	depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
+	depends on GPIOLIB || COMPILE_TEST
+	depends on OF
+	depends on PINCTRL
+	help
+	  This option enables support for the LEDs on the AAT1290.
+
 config LEDS_RT4505
 	tristate "LED support for RT4505 flashlight controller"
 	depends on I2C && OF
diff --git a/drivers/leds/flash/Makefile b/drivers/leds/flash/Makefile
index 09aee561f769..11bec5881d51 100644
--- a/drivers/leds/flash/Makefile
+++ b/drivers/leds/flash/Makefile
@@ -1,4 +1,5 @@ 
 # SPDX-License-Identifier: GPL-2.0
 
+obj-$(CONFIG_LEDS_AAT1290)	+= leds-aat1290.o
 obj-$(CONFIG_LEDS_RT4505)	+= leds-rt4505.o
 obj-$(CONFIG_LEDS_RT8515)	+= leds-rt8515.o
diff --git a/drivers/leds/leds-aat1290.c b/drivers/leds/flash/leds-aat1290.c
similarity index 100%
rename from drivers/leds/leds-aat1290.c
rename to drivers/leds/flash/leds-aat1290.c