power: gpio-charger: do not use gpio value directly
From: Heiko Stuebner <heiko.stuebner@...> Date: Tue, 11 Mar 2014 17:22:07 +0100
Commit-Message
Some gpio implementations return interesting values for gpio_get_value when the value is not 0 - as seen on a imx6sl board. Therefore do not use the value returned from gpio_get_value directly but simply check for 0 or not 0. Signed-off-by: Heiko Stuebner <heiko.stuebner@...> Reviewed-by: Doug Anderson <dianders@...> Tested-by: Doug Anderson <dianders@...>
Patch-Comment
drivers/power/gpio-charger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Statistics
- 1 lines added
- 1 lines removed