diff options
-rw-r--r-- | drivers/power/pcf50633-charger.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/power/pcf50633-charger.c b/drivers/power/pcf50633-charger.c index 92cbd25033c..8772604ae1a 100644 --- a/drivers/power/pcf50633-charger.c +++ b/drivers/power/pcf50633-charger.c @@ -331,7 +331,7 @@ static int usb_get_property(struct power_supply *psy, switch (psp) { case POWER_SUPPLY_PROP_ONLINE: val->intval = mbc->usb_online && - (usblim == PCF50633_MBCC7_USB_100mA); + (usblim <= PCF50633_MBCC7_USB_500mA); break; default: ret = -EINVAL; @@ -352,7 +352,7 @@ static int ac_get_property(struct power_supply *psy, switch (psp) { case POWER_SUPPLY_PROP_ONLINE: val->intval = mbc->usb_online && - (usblim == PCF50633_MBCC7_USB_500mA); + (usblim == PCF50633_MBCC7_USB_1000mA); break; default: ret = -EINVAL; |