diff options
Diffstat (limited to 'drivers')
-rwxr-xr-x | drivers/power/s5pc110_battery.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/power/s5pc110_battery.c b/drivers/power/s5pc110_battery.c index cd8779b..3567e1b 100755 --- a/drivers/power/s5pc110_battery.c +++ b/drivers/power/s5pc110_battery.c @@ -301,7 +301,8 @@ static int s3c_ac_get_property(struct power_supply *ps, return -EINVAL; /* Set enable=1 only if the AC charger is connected */ - val->intval = (chg->cable_status == CABLE_TYPE_AC); + val->intval = ((chg->cable_status == CABLE_TYPE_AC) && + max8998_check_vdcin(chg)); return 0; } |