Fixup! power: supply: qti_battery_charger: Return charge counter in uAh

Devices using BQ_FUEL_GAUGE seem to report this value correctly by default, so exclude the patch for them.

Change-Id: I0d882ef3b71fdfcde45d8a9aca0c726ea882da25
This commit is contained in:
Arian 2023-07-02 02:47:30 +05:30 committed by Giovanni Ricca
parent b8944e288a
commit 66d9b9a489
No known key found for this signature in database

View File

@ -1129,9 +1129,11 @@ 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;
#if !defined(CONFIG_BQ_FUEL_GAUGE)
case POWER_SUPPLY_PROP_CHARGE_COUNTER:
pval->intval = DIV_ROUND_CLOSEST(pst->prop[prop_id], 100);
break;
#endif
default:
pval->intval = pst->prop[prop_id];
break;