mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
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:
committed by
Gerrit Code Review
parent
91c0b3f7a5
commit
1df21c1635
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user