Skip to content

Commit

Permalink
ramips: ER605v2 fix LED function definition
Browse files Browse the repository at this point in the history
commit 665c215
added support for ER605v2

All three LEDs where configured with LED_FUNCTION_STATUS
which worked for 23.05 and kernel 5.15.

With the upgrade to kernel 6.6 this leads to a name collision.

Therefore the USB and Power LED now use the common.h function
LED_FUNCTION_USB and LED_FUNCTION_POWER respectivly.

* fixes openwrt#16596

Link: openwrt#16606
Signed-off-by: Goetz Goerisch <[email protected]>
Link: openwrt#16606
Signed-off-by: Robert Marko <[email protected]>
  • Loading branch information
Goetz Goerisch authored and robimarko committed Oct 6, 2024
1 parent b62e6f5 commit cffc52b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions target/linux/ramips/dts/mt7621_tplink_er605-v2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@

led_usb: usb {
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_STATUS;
function = LED_FUNCTION_USB;
gpios = <&gpio 11 GPIO_ACTIVE_HIGH>;
};

led_power: power {
color = <LED_COLOR_ID_GREEN>;
function = LED_FUNCTION_STATUS;
function = LED_FUNCTION_POWER;
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
default-state = "on";
};
Expand Down

0 comments on commit cffc52b

Please sign in to comment.