From: Zhangbin Tong Date: Tue, 29 Sep 2015 00:51:55 +0000 (+0800) Subject: power-supply: cw2015_battery: fix incorrect bracketing on a test X-Git-Tag: firefly_0821_release~3753 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=1df21c1635a8bcbf344c6fead73cf6872f1bae8c;p=firefly-linux-kernel-4.4.55.git power-supply: cw2015_battery: fix incorrect bracketing on a test Change-Id: Id4910e148852ab64d9396b17d3daf403d1fcb4b2 Signed-off-by: Zhangbin Tong --- 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); }