rtl838x: remove model name from LED labels
authorAdrian Schmutzler <freifunk@adrianschmutzler.de>
Thu, 15 Oct 2020 15:54:31 +0000 (17:54 +0200)
committerAdrian Schmutzler <freifunk@adrianschmutzler.de>
Thu, 15 Oct 2020 15:54:31 +0000 (17:54 +0200)
Like in the previous patches for various targets, this removes
the "devicename" from LED labels in rtl838x, as it's useless and
only creates complexity.

Since the target is fresh and so far only system LEDs were added,
this does not add a migration script.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
target/linux/rtl838x/base-files/etc/board.d/01_leds
target/linux/rtl838x/dts/rtl8382_allnet_all-sg8208m.dts
target/linux/rtl838x/dts/rtl8382_d-link_dgs-1210-16.dts

index 7991b832f64ca0525173e9e728f71865e02e3a28..699ab817dde5a675118e015b5478898003d3bbc5 100755 (executable)
@@ -3,7 +3,6 @@
 . /lib/functions/uci-defaults.sh
 
 board=$(board_name)
-boardname="${board##*,}"
 
 board_config_update
 
index 00be58faca7288b87486be233083df3fe067a9af..5433b7f37286ba000313627082116a9838dce0ef 100644 (file)
@@ -35,7 +35,7 @@
                compatible = "gpio-leds";
 
                led_sys: sys {
-                       label = "all-sg8208m:green:sys";
+                       label = "green:sys";
                        gpios = <&gpio0 47 GPIO_ACTIVE_HIGH>;
                };
                // GPIO 25: power on/off all port leds
index f1eee78b601121bcd53e282e0f55d4af7db49f4a..2d7abc00db1b3a4a3cfd61b856f7937f29660e38 100644 (file)
@@ -22,7 +22,7 @@
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "dgs-1210-16:green:power";
+                       label = "green:power";
                        gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
                };
        };