drivers: power: report battery voltage in AOSP compatible format
This commit is contained in:
@@ -109,6 +109,8 @@ static ssize_t power_supply_show_property(struct device *dev,
|
||||
|
||||
if (off == POWER_SUPPLY_PROP_CHARGE_COUNTER_EXT)
|
||||
return sprintf(buf, "%lld\n", value.int64val);
|
||||
else if (off == POWER_SUPPLY_PROP_batt_vol)
|
||||
return sprintf(buf, "%d\n", (value.intval * 1000));
|
||||
else
|
||||
return sprintf(buf, "%d\n", value.intval);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user