diff mbox series

[1/2] dt-bindings: leds: add LED_FUNCTION for wlan2g/wlan5g

Message ID 20200919171913.56765-1-freifunk@adrianschmutzler.de
State Superseded
Headers show
Series [1/2] dt-bindings: leds: add LED_FUNCTION for wlan2g/wlan5g | expand

Checks

Context Check Description
robh/checkpatch success

Commit Message

Adrian Schmutzler Sept. 19, 2020, 5:19 p.m. UTC
Many consumer "routers" have dedicated LEDs for specific WiFi bands,
e.g. one for 2.4 GHz and one for 5 GHz. These LEDs specifically
indicate the state of the relevant band, so the latter should be
included in the function name. LED_FUNCTION_WLAN will remain for
general cases or when the LED is used for more than one band.

This essentially equivalent to how we use LED_FUNCTION_LAN and
LED_FUNCTION_WAN instead of just having LED_FUNCTION_ETHERNET.

Signed-off-by: Adrian Schmutzler <freifunk@adrianschmutzler.de>
---
 include/dt-bindings/leds/common.h | 2 ++
 1 file changed, 2 insertions(+)
diff mbox series

Patch

diff --git a/include/dt-bindings/leds/common.h b/include/dt-bindings/leds/common.h
index 52b619d44ba2..52db8a9032d0 100644
--- a/include/dt-bindings/leds/common.h
+++ b/include/dt-bindings/leds/common.h
@@ -89,6 +89,8 @@ 
 #define LED_FUNCTION_USB "usb"
 #define LED_FUNCTION_WAN "wan"
 #define LED_FUNCTION_WLAN "wlan"
+#define LED_FUNCTUON_WLAN2G "wlan2g"
+#define LED_FUNCTUON_WLAN5G "wlan5g"
 #define LED_FUNCTION_WPS "wps"
 
 #endif /* __DT_BINDINGS_LEDS_H */