aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel/mac80211/patches/532-ath9k_get_led_polarity_from_platform_data.patch
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2015-12-17 09:27:24 +0000
committerJohn Crispin <john@openwrt.org>2015-12-17 09:27:24 +0000
commit932bc8d5eb1e5666eb967f3adeddceb22081b880 (patch)
tree6a4ae910170b9e9ee6df01a1de2cda9f804c46a2 /package/kernel/mac80211/patches/532-ath9k_get_led_polarity_from_platform_data.patch
parent4a4b0b82ec4d5aae5306988819c31afda9e8ca96 (diff)
downloadupstream-932bc8d5eb1e5666eb967f3adeddceb22081b880.tar.gz
upstream-932bc8d5eb1e5666eb967f3adeddceb22081b880.tar.bz2
upstream-932bc8d5eb1e5666eb967f3adeddceb22081b880.zip
ath9k: Allow configuration of LED polarity in platform data.
Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> SVN-Revision: 47910
Diffstat (limited to 'package/kernel/mac80211/patches/532-ath9k_get_led_polarity_from_platform_data.patch')
-rw-r--r--package/kernel/mac80211/patches/532-ath9k_get_led_polarity_from_platform_data.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/kernel/mac80211/patches/532-ath9k_get_led_polarity_from_platform_data.patch b/package/kernel/mac80211/patches/532-ath9k_get_led_polarity_from_platform_data.patch
new file mode 100644
index 0000000000..3523adeb1a
--- /dev/null
+++ b/package/kernel/mac80211/patches/532-ath9k_get_led_polarity_from_platform_data.patch
@@ -0,0 +1,20 @@
+--- a/include/linux/ath9k_platform.h
++++ b/include/linux/ath9k_platform.h
+@@ -36,6 +36,7 @@ struct ath9k_platform_data {
+ bool tx_gain_buffalo;
+ bool disable_2ghz;
+ bool disable_5ghz;
++ bool led_active_high;
+
+ int (*get_mac_revision)(void);
+ int (*external_reset)(void);
+--- a/drivers/net/wireless/ath/ath9k/init.c
++++ b/drivers/net/wireless/ath/ath9k/init.c
+@@ -577,6 +577,7 @@ static int ath9k_init_softc(u16 devid, struct ath_softc *sc,
+ ah->external_reset = pdata->external_reset;
+ ah->disable_2ghz = pdata->disable_2ghz;
+ ah->disable_5ghz = pdata->disable_5ghz;
++ ah->config.led_active_high = pdata->led_active_high;
+ if (!pdata->endian_check)
+ ah->ah_flags |= AH_NO_EEP_SWAP;
+ }