ar71xx: fix the AP/Router LED definitons on MZK-W300NH
authorGabor Juhos <juhosg@openwrt.org>
Tue, 24 Jan 2012 18:40:38 +0000 (18:40 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Tue, 24 Jan 2012 18:40:38 +0000 (18:40 +0000)
SVN-Revision: 29897

target/linux/ar71xx/files-2.6.39/arch/mips/ar71xx/mach-mzk-w300nh.c
target/linux/ar71xx/files-3.2/arch/mips/ath79/mach-mzk-w300nh.c

index ca98c7c0413bddd32bc53d69019ae4daf59624f4..0ce1f194b8020e5502f1f211037abe51aeda6df4 100644 (file)
@@ -21,8 +21,8 @@
 #define MZK_W300NH_GPIO_LED_STATUS     1
 #define MZK_W300NH_GPIO_LED_WPS                3
 #define MZK_W300NH_GPIO_LED_WLAN       6
-#define MZK_W300NH_GPIO_LED_AP         15
-#define MZK_W300NH_GPIO_LED_ROUTER     16
+#define MZK_W300NH_GPIO_LED_AP_GREEN   15
+#define MZK_W300NH_GPIO_LED_AP_AMBER   16
 
 #define MZK_W300NH_GPIO_BTN_APROUTER   5
 #define MZK_W300NH_GPIO_BTN_WPS                12
@@ -45,13 +45,11 @@ static struct gpio_led mzk_w300nh_leds_gpio[] __initdata = {
                .gpio           = MZK_W300NH_GPIO_LED_WLAN,
                .active_low     = 1,
        }, {
-               .name           = "planex:green:ap",
-               .gpio           = MZK_W300NH_GPIO_LED_AP,
-               .active_low     = 1,
+               .name           = "planex:green:aprouter",
+               .gpio           = MZK_W300NH_GPIO_LED_AP_GREEN,
        }, {
-               .name           = "planex:green:router",
-               .gpio           = MZK_W300NH_GPIO_LED_ROUTER,
-               .active_low     = 1,
+               .name           = "planex:amber:aprouter",
+               .gpio           = MZK_W300NH_GPIO_LED_AP_AMBER,
        }
 };
 
index 4ff19e884191af6c1a663bd7cf493f36d2d21936..8c40365283c3430ac971676d4c90e815f0266b6b 100644 (file)
@@ -21,8 +21,8 @@
 #define MZK_W300NH_GPIO_LED_STATUS     1
 #define MZK_W300NH_GPIO_LED_WPS                3
 #define MZK_W300NH_GPIO_LED_WLAN       6
-#define MZK_W300NH_GPIO_LED_AP         15
-#define MZK_W300NH_GPIO_LED_ROUTER     16
+#define MZK_W300NH_GPIO_LED_AP_GREEN   15
+#define MZK_W300NH_GPIO_LED_AP_AMBER   16
 
 #define MZK_W300NH_GPIO_BTN_APROUTER   5
 #define MZK_W300NH_GPIO_BTN_WPS                12
@@ -45,13 +45,11 @@ static struct gpio_led mzk_w300nh_leds_gpio[] __initdata = {
                .gpio           = MZK_W300NH_GPIO_LED_WLAN,
                .active_low     = 1,
        }, {
-               .name           = "planex:green:ap",
-               .gpio           = MZK_W300NH_GPIO_LED_AP,
-               .active_low     = 1,
+               .name           = "planex:green:aprouter",
+               .gpio           = MZK_W300NH_GPIO_LED_AP_GREEN,
        }, {
-               .name           = "planex:green:router",
-               .gpio           = MZK_W300NH_GPIO_LED_ROUTER,
-               .active_low     = 1,
+               .name           = "planex:amber:aprouter",
+               .gpio           = MZK_W300NH_GPIO_LED_AP_AMBER,
        }
 };