diff --git a/drivers/power/supply/qti_battery_charger.c b/drivers/power/supply/qti_battery_charger.c index cf049a07a789..0895bd9e14cb 100644 --- a/drivers/power/supply/qti_battery_charger.c +++ b/drivers/power/supply/qti_battery_charger.c @@ -1129,6 +1129,9 @@ static int battery_psy_get_prop(struct power_supply *psy, case POWER_SUPPLY_PROP_CHARGE_CONTROL_LIMIT_MAX: pval->intval = bcdev->num_thermal_levels; break; + case POWER_SUPPLY_PROP_CHARGE_COUNTER: + pval->intval = DIV_ROUND_CLOSEST(pst->prop[prop_id], 100); + break; default: pval->intval = pst->prop[prop_id]; break;