Re: [ath9k-devel] [PATCH] ath9k: fix ath9k_hw_gpio_get() to return 0 or 1 on success

2016-11-19 Thread Kalle Valo
Matthias Schiffer writes: > Commit b2d70d4944c1 ("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

Re: [ath9k-devel] [PATCH] ath9k: fix ath9k_hw_gpio_get() to return 0 or 1 on success

2016-11-19 Thread Kalle Valo
Matthias Schiffer writes: > On 11/16/2016 03:08 PM, Kalle Valo wrote: >> Matthias Schiffer writes: >> >>> Commit b2d70d4944c1 ("ath9k: make GPIO API to support both of WMAC and >>> SOC") refactored ath9k_hw_gpio_get() to support

[ath9k-devel] [PATCH] ath9k: fix ath9k_hw_gpio_get() to return 0 or 1 on success

2016-11-19 Thread Matthias Schiffer
Commit b2d70d4944c1 ("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(). Instead of fixing all callers, change

Re: [ath9k-devel] [PATCH] ath9k: fix ath9k_hw_gpio_get() to return 0 or 1 on success

2016-11-19 Thread Matthias Schiffer
On 11/16/2016 03:08 PM, Kalle Valo wrote: > Matthias Schiffer writes: > >> Commit b2d70d4944c1 ("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