From: Linus Walleij <linus.walleij@linaro.org>
To: Pavel Machek <pavel@ucw.cz>
Cc: linux-leds@vger.kernel.org,
Linus Walleij <linus.walleij@linaro.org>,
Ingi Kim <ingi2.kim@samsung.com>
Subject: [PATCH 6/6] leds: ktd2692: Move driver to flash subdirectory
Date: Fri, 28 May 2021 22:24:04 +0200 [thread overview]
Message-ID: <20210528202404.431859-6-linus.walleij@linaro.org> (raw)
In-Reply-To: <20210528202404.431859-1-linus.walleij@linaro.org>
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>
---
drivers/leds/Kconfig | 10 ----------
drivers/leds/Makefile | 1 -
drivers/leds/flash/Kconfig | 10 ++++++++++
drivers/leds/flash/Makefile | 1 +
drivers/leds/{ => flash}/leds-ktd2692.c | 0
5 files changed, 11 insertions(+), 11 deletions(-)
rename drivers/leds/{ => flash}/leds-ktd2692.c (100%)
diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig
index 1671aa2f90b5..da7773dc8670 100644
--- a/drivers/leds/Kconfig
+++ b/drivers/leds/Kconfig
@@ -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
diff --git a/drivers/leds/Makefile b/drivers/leds/Makefile
index 6d5c23afaf98..c636ec069612 100644
--- a/drivers/leds/Makefile
+++ b/drivers/leds/Makefile
@@ -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
diff --git a/drivers/leds/flash/Kconfig b/drivers/leds/flash/Kconfig
index 6cb6600555f0..b230f3d65eb0 100644
--- a/drivers/leds/flash/Kconfig
+++ b/drivers/leds/flash/Kconfig
@@ -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
diff --git a/drivers/leds/flash/Makefile b/drivers/leds/flash/Makefile
index 67556329441e..ebea42f9c37e 100644
--- a/drivers/leds/flash/Makefile
+++ b/drivers/leds/flash/Makefile
@@ -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
diff --git a/drivers/leds/leds-ktd2692.c b/drivers/leds/flash/leds-ktd2692.c
similarity index 100%
rename from drivers/leds/leds-ktd2692.c
rename to drivers/leds/flash/leds-ktd2692.c
--
2.31.1
next prev parent reply other threads:[~2021-05-28 20:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-05-28 20:23 [PATCH 1/6] leds: aat1290: Move driver to flash subdirectory Linus Walleij
2021-05-28 20:24 ` [PATCH 2/6] leds: as3645a: " Linus Walleij
2021-05-31 6:39 ` Sakari Ailus
2021-05-28 20:24 ` [PATCH 3/6] leds: max77693: " Linus Walleij
2021-05-28 20:24 ` [PATCH 4/6] leds: sgm3140: " Linus Walleij
2021-05-28 20:24 ` [PATCH 5/6] leds: lm3601x: " Linus Walleij
2021-05-28 20:24 ` Linus Walleij [this message]
2021-05-31 19:49 ` [PATCH 1/6] leds: aat1290: " Jacek Anaszewski
2021-07-03 20:15 ` Pavel Machek
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210528202404.431859-6-linus.walleij@linaro.org \
--to=linus.walleij@linaro.org \
--cc=ingi2.kim@samsung.com \
--cc=linux-leds@vger.kernel.org \
--cc=pavel@ucw.cz \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).