Fix (invert/revert) Hornet-UB WPS LED state
authorJohn Crispin <john@openwrt.org>
Sun, 15 Mar 2015 19:25:48 +0000 (19:25 +0000)
committerJohn Crispin <john@openwrt.org>
Sun, 15 Mar 2015 19:25:48 +0000 (19:25 +0000)
My previous patch regarding the Hornet-UB board
(commit: beed4d82d6a0154b0cd5f7b84e2180215ace6718) actually
causes the WPS led state to be inverted. Practically this meant
that value 0 in /sys/class/led/alfa:blue:wps/brightness would
turn the LED on and any positive value (1-255) would turn it off.

The above of course is confusing and hence reverting this value
back to the way it was before beed4d82d6a0154b0cd5f7b84e2180215ace6718.

Signed-off-by: Janne Cederberg <janne.cederberg@gmail.com>
SVN-Revision: 44791

target/linux/ar71xx/files/arch/mips/ath79/mach-hornet-ub.c

index 93bb8f06c87b56fe81a7acdb44bb55ee6934248d..1d2142458563d47ef517aa3c742667232e52d65f 100644 (file)
@@ -65,7 +65,7 @@ static struct gpio_led hornet_ub_leds_gpio[] __initdata = {
        {
                .name           = "alfa:blue:wps",
                .gpio           = HORNET_UB_GPIO_LED_WPS,
-               .active_low     = 0,
+               .active_low     = 1,
        },
 };