diff options
author | Martin Blumenstingl <martin.blumenstingl@googlemail.com> | 2016-06-23 14:57:09 (GMT) |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2016-07-08 14:01:14 (GMT) |
commit | 3467f0d433016c45d1851f3587d32816b7b2ffb0 (patch) | |
tree | 86c0d2ac4230b9226d2b3bd37ef511c00cb6c112 /drivers/net/wireless/ath/ath9k/init.c | |
parent | 86ceae90d3f9580d8c69f814d252cde80f85b404 (diff) | |
download | linux-3467f0d433016c45d1851f3587d32816b7b2ffb0.tar.xz |
ath9k: Allow configuration of LED polarity in platform data.
Some devices running OpenWrt need this and it makes sense to add this
to ath9k_platform_data as the next patches will add a devicetree
(boolean) property for it as well.
Suggested-by: Vittorio Gambaletta <openwrt@vittgam.net>
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/init.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/init.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath9k/init.c b/drivers/net/wireless/ath/ath9k/init.c index 2ee8624..384929d 100644 --- a/drivers/net/wireless/ath/ath9k/init.c +++ b/drivers/net/wireless/ath/ath9k/init.c @@ -527,6 +527,9 @@ static int ath9k_init_soc_platform(struct ath_softc *sc) return ret; } + if (pdata->led_active_high) + ah->config.led_active_high = true; + if (pdata->tx_gain_buffalo) ah->config.tx_gain_buffalo = true; |