Commit dbbb7959 authored by Tobias Schramm's avatar Tobias Schramm

drivers/power: cw2015_battery: Add design charge_full_design_property

Thanks to schaecsn for this suggestion
parent 24759b0d
......@@ -655,6 +655,7 @@ static int cw_battery_get_property(struct power_supply *psy,
break;
case POWER_SUPPLY_PROP_CHARGE_FULL:
case POWER_SUPPLY_PROP_CHARGE_FULL_DESIGN:
val->intval = cw_bat->plat_data.design_capacity * 1000;
break;
......@@ -694,6 +695,7 @@ static enum power_supply_property cw_battery_properties[] = {
POWER_SUPPLY_PROP_TECHNOLOGY,
POWER_SUPPLY_PROP_CHARGE_COUNTER,
POWER_SUPPLY_PROP_CHARGE_FULL,
POWER_SUPPLY_PROP_CHARGE_FULL_DESIGN,
POWER_SUPPLY_PROP_TEMP,
POWER_SUPPLY_PROP_CURRENT_NOW,
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment