Files
android_kernel_xiaomi_sm8450/drivers/net/wireless/ath/ath9k
Matthias Schiffer 91851cc7a9 ath9k: fix ath9k_hw_gpio_get() to return 0 or 1 on success
Commit b2d70d4944 ("ath9k: make GPIO API to support both of WMAC and
SOC") refactored ath9k_hw_gpio_get() to support both WMAC and SOC GPIOs,
changing the return on success from 1 to BIT(gpio). This broke some callers
like ath_is_rfkill_set(). This doesn't fix any known bug in mainline at the
moment, but should be fixed anyway.

Instead of fixing all callers, change ath9k_hw_gpio_get() back to only
return 0 or 1.

Fixes: b2d70d4944 ("ath9k: make GPIO API to support both of WMAC and SOC")
Cc: <stable@vger.kernel.org> # v4.7+
Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
[kvalo@qca.qualcomm.com: mention that doesn't fix any known bug]
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
2016-11-23 15:58:21 +02:00
..
2016-08-19 13:07:06 +03:00
2015-03-03 14:55:24 +02:00
2015-03-13 15:19:36 +02:00
2016-04-12 15:56:15 +02:00
2015-10-28 20:57:13 +02:00
2016-04-12 15:56:15 +02:00
2016-09-02 19:06:05 +03:00
2016-04-26 14:13:59 +03:00
2014-02-12 15:36:03 -05:00
2015-06-15 12:44:34 +03:00
2015-03-20 08:27:17 +02:00
2016-09-28 12:59:49 +03:00
2015-01-15 14:25:03 +02:00
2015-03-03 14:55:24 +02:00
2015-03-03 14:55:27 +02:00
2015-02-26 14:58:43 +02:00
2016-05-28 11:24:25 +03:00