Message ID | 1360932310-30065-6-git-send-email-lee.jones@linaro.org |
---|---|
State | Accepted |
Commit | e82c5bdbf3aa26d22e9eab3626213795d8338da1 |
Headers | show |
diff --git a/drivers/power/ab8500_fg.c b/drivers/power/ab8500_fg.c index 9d33546..44d8faa 100644 --- a/drivers/power/ab8500_fg.c +++ b/drivers/power/ab8500_fg.c @@ -2153,9 +2153,7 @@ static int ab8500_fg_get_property(struct power_supply *psy, val->intval = di->bat_cap.prev_mah; break; case POWER_SUPPLY_PROP_CAPACITY: - if (di->bm->capacity_scaling) - val->intval = di->bat_cap.cap_scale.scaled_cap; - else if (di->flags.batt_unknown && !di->bm->chg_unknown_bat && + if (di->flags.batt_unknown && !di->bm->chg_unknown_bat && di->flags.batt_id_received) val->intval = 100; else