From 1df21c1635a8bcbf344c6fead73cf6872f1bae8c Mon Sep 17 00:00:00 2001 From: Zhangbin Tong Date: Tue, 29 Sep 2015 08:51:55 +0800 Subject: [PATCH] power-supply: cw2015_battery: fix incorrect bracketing on a test Change-Id: Id4910e148852ab64d9396b17d3daf403d1fcb4b2 Signed-off-by: Zhangbin Tong --- drivers/power/cw2015_battery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/power/cw2015_battery.c b/drivers/power/cw2015_battery.c index 2eca11cce96e..d2bdbd54f732 100755 --- a/drivers/power/cw2015_battery.c +++ b/drivers/power/cw2015_battery.c @@ -806,7 +806,7 @@ static int rk_usb_update_online(struct cw_battery *cw_bat) } else if (usb_status == 0 && cw_bat->usb_online != 0) { if (gpio_is_valid(gpio)) { - if (gpio_get_value(gpio == value)) + if (gpio_get_value(gpio) == value) gpio_direction_output(gpio, !value); } -- 2.34.1