diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/power/supply/cpcap-charger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/cpcap-charger.c b/drivers/power/supply/cpcap-charger.c index 33ca1174070b..378fbdaba85b 100644 --- a/drivers/power/supply/cpcap-charger.c +++ b/drivers/power/supply/cpcap-charger.c | |||
@@ -262,7 +262,7 @@ static int cpcap_charger_set_state(struct cpcap_charger_ddata *ddata, | |||
262 | bool enable; | 262 | bool enable; |
263 | int error; | 263 | int error; |
264 | 264 | ||
265 | enable = max_voltage && (charge_current || trickle_current); | 265 | enable = (charge_current || trickle_current); |
266 | dev_dbg(ddata->dev, "%s enable: %i\n", __func__, enable); | 266 | dev_dbg(ddata->dev, "%s enable: %i\n", __func__, enable); |
267 | 267 | ||
268 | if (!enable) { | 268 | if (!enable) { |