From patchwork Mon Apr 20 23:24:12 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael J. Bazzinotti" X-Patchwork-Id: 462932 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 6C7A8140142 for ; Tue, 21 Apr 2015 09:24:58 +1000 (AEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 9E2012803CC; Tue, 21 Apr 2015 01:23:54 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 638F6280226 for ; Tue, 21 Apr 2015 01:23:51 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_FROM_MX=-3.1; rate: -7.6 Received: from mx1.cs.umb.edu (mx1.cs.umb.edu [158.121.104.3]) by arrakis.dune.hu (Postfix) with ESMTP for ; Tue, 21 Apr 2015 01:23:48 +0200 (CEST) Received: from grn.cs.umb.edu (grn.cs.umb.edu [192.168.104.178]) by mx1.cs.umb.edu (8.12.11/8.12.8) with ESMTP id t3KNOijH027291; Mon, 20 Apr 2015 19:24:44 -0400 (EDT) Received: by grn.cs.umb.edu (Postfix, from userid 7343) id 2F004462D23; Mon, 20 Apr 2015 19:24:44 -0400 (EDT) From: "Michael J. Bazzinotti" To: openwrt-devel@lists.openwrt.org Date: Mon, 20 Apr 2015 19:24:12 -0400 Message-Id: <1429572262-20668-1-git-send-email-bazz@grn.cs.umb.edu> X-Mailer: git-send-email 1.9.1 X-Scanned-By: MIMEDefang 2.65 on 192.168.104.3 Cc: "Michael J. Bazzinotti" Subject: [OpenWrt-Devel] [PATCH 01/11] ar71xx: use a common naming scheme for LEDS on wnr2000-v4 X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" From: "Michael J. Bazzinotti" It is common that the router provider be used rather than product name. One can see this in target/linux/ar71xx/base-files/etc/uci-defaults/01_leds Signed-off-by: Michael J. Bazzinotti --- .../linux/ar71xx/base-files/etc/uci-defaults/01_leds | 14 +++++++------- .../ar71xx/files/arch/mips/ath79/mach-wnr2000-v4.c | 18 +++++++++--------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds index 787523a..559ff5b 100644 --- a/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds +++ b/target/linux/ar71xx/base-files/etc/uci-defaults/01_leds @@ -498,13 +498,13 @@ wlae-ag300n) ;; wnr2000-v4) - ucidef_set_led_netdev "wan" "WAN" "wnr2000-v4:green:wan" "eth1" - ucidef_set_led_netdev "wlan" "WLAN" "wnr2000-v4:blue:wlan" "wlan0" - ucidef_set_led_switch "lan1" "LAN1" "wnr2000-v4:amber:lan1" "switch0" "0x04" - ucidef_set_led_switch "lan2" "LAN2" "wnr2000-v4:amber:lan2" "switch0" "0x08" - ucidef_set_led_switch "lan3" "LAN3" "wnr2000-v4:amber:lan3" "switch0" "0x10" - ucidef_set_led_switch "lan4" "LAN4" "wnr2000-v4:amber:lan4" "switch0" "0x02" - ucidef_set_led_usbdev "usb" "USB" "wnr2000-v4:amber:status" "1-1" + ucidef_set_led_netdev "wan" "WAN" "netgear:green:wan" "eth1" + ucidef_set_led_netdev "wlan" "WLAN" "netgear:blue:wlan" "wlan0" + ucidef_set_led_switch "lan1" "LAN1" "netgear:amber:lan1" "switch0" "0x04" + ucidef_set_led_switch "lan2" "LAN2" "netgear:amber:lan2" "switch0" "0x08" + ucidef_set_led_switch "lan3" "LAN3" "netgear:amber:lan3" "switch0" "0x10" + ucidef_set_led_switch "lan4" "LAN4" "netgear:amber:lan4" "switch0" "0x02" + ucidef_set_led_usbdev "usb" "USB" "netgear:amber:status" "1-1" ;; wzr-hp-ag300h) diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v4.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v4.c index d8437dc..36896b7 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v4.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-wnr2000-v4.c @@ -52,44 +52,44 @@ static struct gpio_led wnr2000v4_leds_gpio[] __initdata = { { - .name = "wnr2000-v4:green:power", + .name = "netgear:green:power", .gpio = WNR2000V4_GPIO_LED_PWR_GREEN, .active_low = 1, .default_trigger = "default-on", }, { - .name = "wnr2000-v4:green:wan", + .name = "netgear:green:wan", .gpio = WNR2000V4_GPIO_LED_WAN_AMBER, .active_low = 1, }, { - .name = "wnr2000-v4:green:wps", + .name = "netgear:green:wps", .gpio = WNR2000V4_GPIO_LED_WPS, .active_low = 1, }, { - .name = "wnr2000-v4:amber:status", + .name = "netgear:amber:status", .gpio = STATUS_LED_GPIO, .active_low = 1, }, { - .name = "wnr2000-v4:blue:wlan", + .name = "netgear:blue:wlan", .gpio = WNR2000V4_GPIO_LED_WLAN, .active_low = 1, }, { - .name = "wnr2000-v4:amber:lan1", + .name = "netgear:amber:lan1", .gpio = WNR2000V4_GPIO_LED_LAN1, .active_low = 1, }, { - .name = "wnr2000-v4:amber:lan2", + .name = "netgear:amber:lan2", .gpio = WNR2000V4_GPIO_LED_LAN2, .active_low = 1, }, { - .name = "wnr2000-v4:amber:lan3", + .name = "netgear:amber:lan3", .gpio = WNR2000V4_GPIO_LED_LAN3, .active_low = 1, }, { - .name = "wnr2000-v4:amber:lan4", + .name = "netgear:amber:lan4", .gpio = WNR2000V4_GPIO_LED_LAN4, .active_low = 1, }