ath9k: drop obsolete patch
authorMathias Kresin <dev@kresin.me>
Sat, 25 Mar 2017 10:48:02 +0000 (11:48 +0100)
committerMathias Kresin <dev@kresin.me>
Sat, 8 Apr 2017 12:30:00 +0000 (14:30 +0200)
Now that the wireless LEDs are added via platform leds this patch isn't
required any longer.

Signed-off-by: Mathias Kresin <dev@kresin.me>
package/kernel/mac80211/patches/546-ath9k_platform_led_name.patch [deleted file]
package/kernel/mac80211/patches/548-ath9k_enable_gpio_chip.patch
package/kernel/mac80211/patches/549-ath9k_enable_gpio_buttons.patch
package/kernel/mac80211/patches/551-ath9k_ubnt_uap_plus_hsr.patch
target/linux/generic/files/include/linux/ath9k_platform.h

diff --git a/package/kernel/mac80211/patches/546-ath9k_platform_led_name.patch b/package/kernel/mac80211/patches/546-ath9k_platform_led_name.patch
deleted file mode 100644 (file)
index ddb3fe6..0000000
+++ /dev/null
@@ -1,39 +0,0 @@
-From: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
-Date: Sun, 31 Jan 2016 20:45:57 +0100
-Subject: [PATCH v4 1/8] mac80211: ath9k: enable platform WLAN LED name
-
-Enable platform-supplied WLAN LED name for ath9k device. It replaces generic
-'ath9k-phy*' label with string set during platform initialization.
-
-Signed-off-by: Michal Cieslakiewicz <michal.cieslakiewicz@wp.pl>
----
- drivers/net/wireless/ath/ath9k/gpio.c | 7 +++++--
- include/linux/ath9k_platform.h        | 1 +
- 2 files changed, 6 insertions(+), 2 deletions(-)
-
---- a/drivers/net/wireless/ath/ath9k/gpio.c
-+++ b/drivers/net/wireless/ath/ath9k/gpio.c
-@@ -166,8 +166,11 @@ void ath_init_leds(struct ath_softc *sc)
-       if (sc->sc_ah->led_pin < 0)
-               return;
--      snprintf(led_name, sizeof(led_name), "ath9k-%s",
--               wiphy_name(sc->hw->wiphy));
-+      if (pdata && pdata->led_name)
-+              strncpy(led_name, pdata->led_name, sizeof(led_name));
-+      else
-+              snprintf(led_name, sizeof(led_name), "ath9k-%s",
-+                       wiphy_name(sc->hw->wiphy));
-       if (ath9k_led_blink)
-               trigger = sc->led_default_trigger;
---- a/include/linux/ath9k_platform.h
-+++ b/include/linux/ath9k_platform.h
-@@ -49,6 +49,7 @@ struct ath9k_platform_data {
-       int num_leds;
-       const struct gpio_led *leds;
-+      const char *led_name;
- };
- #endif /* _LINUX_ATH9K_PLATFORM_H */
index 86917eb6eeb18c9fb56d1cb7ec565ad1aef5c277..31dac29ad77b89626d300d9a82ba3bd2cc2210a1 100644 (file)
@@ -237,7 +237,7 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
        ath_fill_led_pin(sc);
  
        if (pdata && pdata->leds && pdata->num_leds)
-@@ -183,6 +327,7 @@ void ath_init_leds(struct ath_softc *sc)
+@@ -180,6 +324,7 @@ void ath_init_leds(struct ath_softc *sc)
        ath_create_gpio_led(sc, sc->sc_ah->led_pin, led_name, trigger,
                           !sc->sc_ah->config.led_active_high);
  }
index 4e165dde99938d3436b6497b8c2b08491c74f601..f3fead0a1aef41e05957fda39128b13eaebb9652 100644 (file)
@@ -127,10 +127,10 @@ Signed-off-by: Felix Fietkau <nbd@nbd.name>
                for (i = 0; i < pdata->num_leds; i++) {
 --- a/include/linux/ath9k_platform.h
 +++ b/include/linux/ath9k_platform.h
-@@ -50,6 +50,10 @@ struct ath9k_platform_data {
+@@ -49,6 +49,10 @@ struct ath9k_platform_data {
        int num_leds;
        const struct gpio_led *leds;
-       const char *led_name;
 +
 +      unsigned num_btns;
 +      const struct gpio_keys_button *btns;
index 45284c71eed616bcaa5c875e85c209fbefc738a5..bcb0026a69afdc52b3bf5ba074418435b343d1be 100644 (file)
  
 --- a/include/linux/ath9k_platform.h
 +++ b/include/linux/ath9k_platform.h
-@@ -54,6 +54,8 @@ struct ath9k_platform_data {
+@@ -53,6 +53,8 @@ struct ath9k_platform_data {
        unsigned num_btns;
        const struct gpio_keys_button *btns;
        unsigned btn_poll_interval;
index 558445ff63a0f7f7bfff35286c39f89e243156de..f1f2ad419c752fc4a6a07c6b7fe366bf0ae8e38f 100644 (file)
@@ -49,7 +49,6 @@ struct ath9k_platform_data {
 
        int num_leds;
        const struct gpio_led *leds;
-       const char *led_name;
 
        unsigned num_btns;
        const struct gpio_keys_button *btns;