power-supply: cw2015_battery: fix incorrect bracketing on a test

Change-Id: Id4910e148852ab64d9396b17d3daf403d1fcb4b2
Signed-off-by: Zhangbin Tong <zebulun.tong@rock-chips.com>
This commit is contained in:
Zhangbin Tong
2015-09-29 08:51:55 +08:00
committed by Gerrit Code Review
parent 91c0b3f7a5
commit 1df21c1635

View File

@@ -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);
}