Patchwork [OpenWrt-Devel,3/3] ar71xx: airrouter power led support

login
register
Submitter Rocco Folino
Date 2012-06-19 10:43:26
Message ID <4FE057CE.1050200@autistici.org>
Download mbox | patch
Permalink /patch/2307/
State Accepted
Delegated to: Gabor Juhos
Headers show

Comments

Rocco Folino - 2012-06-19 10:43:26
This patch adds support for power led to Unifi Airrouter AP.

Signed-off-by: Rocco Folino <lordzen@autistici.org>

Patch

--- a/arch/mips/ath79/mach-ubnt-xm.c
+++ b/arch/mips/ath79/mach-ubnt-xm.c
@@ -123,6 +123,11 @@  static struct gpio_led ubnt_airrouter_le
 		.name		= "ubnt:green:globe",
 		.gpio		= 0,
 		.active_low	= 1,
+	}, {
+	        .name		= "ubnt:green:power",
+		.gpio		= 11,
+		.active_low	= 1,
+		.default_state  = LEDS_GPIO_DEFSTATE_ON,
 	}
 };