[openwrt/openwrt] generic: move ledbar driver from mediatek target

LEDE Commits lede-commits at lists.infradead.org
Sun Sep 11 12:28:15 PDT 2022


dangole pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/53fc987b25524c28525313347f0e2e5653dce43c

commit 53fc987b25524c28525313347f0e2e5653dce43c
Author: Sven Wegener <sven.wegener at stealer.net>
AuthorDate: Mon May 2 22:13:14 2022 +0200

    generic: move ledbar driver from mediatek target
    
    This moves the ledbar driver to generic, to be also used by the ramips target.
    
    Signed-off-by: Sven Wegener <sven.wegener at stealer.net>
---
 target/linux/generic/config-5.10                                  | 1 +
 target/linux/generic/config-5.15                                  | 1 +
 .../{mediatek => generic}/files/drivers/leds/leds-ubnt-ledbar.c   | 0
 .../hack-5.10}/800-ubnt-ledbar-driver.patch                       | 8 ++++----
 .../hack-5.15}/800-ubnt-ledbar-driver.patch                       | 0
 5 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/target/linux/generic/config-5.10 b/target/linux/generic/config-5.10
index 7e9eb6143a..392de3095f 100644
--- a/target/linux/generic/config-5.10
+++ b/target/linux/generic/config-5.10
@@ -3042,6 +3042,7 @@ CONFIG_LEDS_TRIGGER_NETDEV=y
 CONFIG_LEDS_TRIGGER_TIMER=y
 # CONFIG_LEDS_TRIGGER_TRANSIENT is not set
 # CONFIG_LEDS_TURRIS_OMNIA is not set
+# CONFIG_LEDS_UBNT_LEDBAR is not set
 # CONFIG_LEDS_USER is not set
 # CONFIG_LED_TRIGGER_PHY is not set
 # CONFIG_LEGACY_PTYS is not set
diff --git a/target/linux/generic/config-5.15 b/target/linux/generic/config-5.15
index f188ce36ac..596485f2f7 100644
--- a/target/linux/generic/config-5.15
+++ b/target/linux/generic/config-5.15
@@ -3143,6 +3143,7 @@ CONFIG_LEDS_TRIGGER_TIMER=y
 # CONFIG_LEDS_TRIGGER_TRANSIENT is not set
 # CONFIG_LEDS_TRIGGER_TTY is not set
 # CONFIG_LEDS_TURRIS_OMNIA is not set
+# CONFIG_LEDS_UBNT_LEDBAR is not set
 # CONFIG_LEDS_USER is not set
 # CONFIG_LED_TRIGGER_PHY is not set
 # CONFIG_LEGACY_PTYS is not set
diff --git a/target/linux/mediatek/files/drivers/leds/leds-ubnt-ledbar.c b/target/linux/generic/files/drivers/leds/leds-ubnt-ledbar.c
similarity index 100%
rename from target/linux/mediatek/files/drivers/leds/leds-ubnt-ledbar.c
rename to target/linux/generic/files/drivers/leds/leds-ubnt-ledbar.c
diff --git a/target/linux/mediatek/patches-5.15/800-ubnt-ledbar-driver.patch b/target/linux/generic/hack-5.10/800-ubnt-ledbar-driver.patch
similarity index 79%
copy from target/linux/mediatek/patches-5.15/800-ubnt-ledbar-driver.patch
copy to target/linux/generic/hack-5.10/800-ubnt-ledbar-driver.patch
index 146e6ae2f5..92264eedf9 100644
--- a/target/linux/mediatek/patches-5.15/800-ubnt-ledbar-driver.patch
+++ b/target/linux/generic/hack-5.10/800-ubnt-ledbar-driver.patch
@@ -1,8 +1,8 @@
 --- a/drivers/leds/Kconfig
 +++ b/drivers/leds/Kconfig
-@@ -876,6 +876,16 @@ source "drivers/leds/blink/Kconfig"
- comment "Flash and Torch LED drivers"
- source "drivers/leds/flash/Kconfig"
+@@ -929,6 +929,16 @@ config LEDS_ACER_A500
+ 	  This option enables support for the Power Button LED of
+ 	  Acer Iconia Tab A500.
  
 +config LEDS_UBNT_LEDBAR
 +	tristate "LED support for Ubiquiti UniFi 6 LR"
@@ -19,7 +19,7 @@
  
 --- a/drivers/leds/Makefile
 +++ b/drivers/leds/Makefile
-@@ -87,6 +87,7 @@ obj-$(CONFIG_LEDS_TURRIS_OMNIA)		+= leds
+@@ -93,6 +93,7 @@ obj-$(CONFIG_LEDS_TURRIS_OMNIA)		+= leds
  obj-$(CONFIG_LEDS_WM831X_STATUS)	+= leds-wm831x-status.o
  obj-$(CONFIG_LEDS_WM8350)		+= leds-wm8350.o
  obj-$(CONFIG_LEDS_WRAP)			+= leds-wrap.o
diff --git a/target/linux/mediatek/patches-5.15/800-ubnt-ledbar-driver.patch b/target/linux/generic/hack-5.15/800-ubnt-ledbar-driver.patch
similarity index 100%
rename from target/linux/mediatek/patches-5.15/800-ubnt-ledbar-driver.patch
rename to target/linux/generic/hack-5.15/800-ubnt-ledbar-driver.patch




More information about the lede-commits mailing list