Author: blogic Date: 2015-12-17 10:27:18 +0100 (Thu, 17 Dec 2015) New Revision: 47909
Modified: trunk/package/kernel/mac80211/patches/530-ath9k_extra_leds.patch trunk/package/kernel/mac80211/patches/531-ath9k_extra_platform_leds.patch Log: ath9k: Pass LED polarity to ath_create_gpio_led when initializing the LEDs. Signed-off-by: Vittorio Gambaletta <[email protected]> Modified: trunk/package/kernel/mac80211/patches/530-ath9k_extra_leds.patch =================================================================== --- trunk/package/kernel/mac80211/patches/530-ath9k_extra_leds.patch 2015-12-17 09:27:09 UTC (rev 47908) +++ trunk/package/kernel/mac80211/patches/530-ath9k_extra_leds.patch 2015-12-17 09:27:18 UTC (rev 47909) @@ -159,7 +159,7 @@ + trigger = ieee80211_get_radio_led_name(sc->hw); - sc->led_registered = true; -+ ath_create_gpio_led(sc, sc->sc_ah->led_pin, led_name, trigger, 1); ++ ath_create_gpio_led(sc, sc->sc_ah->led_pin, led_name, trigger, !sc->sc_ah->config.led_active_high); } void ath_fill_led_pin(struct ath_softc *sc) Modified: trunk/package/kernel/mac80211/patches/531-ath9k_extra_platform_leds.patch =================================================================== --- trunk/package/kernel/mac80211/patches/531-ath9k_extra_platform_leds.patch 2015-12-17 09:27:09 UTC (rev 47908) +++ trunk/package/kernel/mac80211/patches/531-ath9k_extra_platform_leds.patch 2015-12-17 09:27:18 UTC (rev 47909) @@ -59,7 +59,7 @@ @@ -120,6 +141,12 @@ void ath_init_leds(struct ath_softc *sc) trigger = ieee80211_get_radio_led_name(sc->hw); - ath_create_gpio_led(sc, sc->sc_ah->led_pin, led_name, trigger, 1); + ath_create_gpio_led(sc, sc->sc_ah->led_pin, led_name, trigger, !sc->sc_ah->config.led_active_high); + + if (!pdata) + return; _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
