0012-ar71xx-remove-numeric-suffix-of-the-TL-WDR3500-USB-LED.patch 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. From: juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73>
  2. Date: Sun, 24 Mar 2013 19:23:45 +0000
  3. Subject: ar71xx: remove numeric suffix of the TL-WDR3500 USB LED
  4. Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
  5. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36118 3c298f89-4303-0410-b956-a3cf2f4a3e73
  6. diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr3500.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr3500.c
  7. index 05fe83d..785b21f 100644
  8. --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr3500.c
  9. +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wdr3500.c
  10. @@ -29,7 +29,7 @@
  11. #include "dev-wmac.h"
  12. #include "machtypes.h"
  13. -#define WDR3500_GPIO_LED_USB1 11
  14. +#define WDR3500_GPIO_LED_USB 11
  15. #define WDR3500_GPIO_LED_WLAN2G 13
  16. #define WDR3500_GPIO_LED_SYSTEM 14
  17. #define WDR3500_GPIO_LED_QSS 15
  18. @@ -37,7 +37,7 @@
  19. #define WDR3500_GPIO_BTN_WPS 16
  20. #define WDR3500_GPIO_BTN_RFKILL 17
  21. -#define WDR3500_GPIO_USB1_POWER 22
  22. +#define WDR3500_GPIO_USB_POWER 22
  23. #define WDR3500_KEYS_POLL_INTERVAL 20 /* msecs */
  24. #define WDR3500_KEYS_DEBOUNCE_INTERVAL (3 * WDR3500_KEYS_POLL_INTERVAL)
  25. @@ -68,8 +68,8 @@ static struct gpio_led wdr3500_leds_gpio[] __initdata = {
  26. .active_low = 1,
  27. },
  28. {
  29. - .name = "tp-link:green:usb1",
  30. - .gpio = WDR3500_GPIO_LED_USB1,
  31. + .name = "tp-link:green:usb",
  32. + .gpio = WDR3500_GPIO_LED_USB,
  33. .active_low = 1,
  34. },
  35. {
  36. @@ -142,9 +142,9 @@ static void __init wdr3500_setup(void)
  37. ath79_register_eth(0);
  38. - gpio_request_one(WDR3500_GPIO_USB1_POWER,
  39. + gpio_request_one(WDR3500_GPIO_USB_POWER,
  40. GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED,
  41. - "USB1 power");
  42. + "USB power");
  43. ath79_register_usb();
  44. }