mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
power_supply: add few more values and props
Add LiMn (one of the most common for small non-rechargable batteries) battery technology and voltage_min/_max properties support. Signed-off-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Anton Vorontsov <[email protected]>
This commit is contained in:
parent
9ef4510626
commit
c7cc930f9a
3 changed files with 11 additions and 1 deletions
|
|
@ -48,7 +48,8 @@ static ssize_t power_supply_show_property(struct device *dev,
|
|||
"Unspecified failure"
|
||||
};
|
||||
static char *technology_text[] = {
|
||||
"Unknown", "NiMH", "Li-ion", "Li-poly", "LiFe", "NiCd"
|
||||
"Unknown", "NiMH", "Li-ion", "Li-poly", "LiFe", "NiCd",
|
||||
"LiMn"
|
||||
};
|
||||
ssize_t ret;
|
||||
struct power_supply *psy = dev_get_drvdata(dev);
|
||||
|
|
@ -84,6 +85,8 @@ static struct device_attribute power_supply_attrs[] = {
|
|||
POWER_SUPPLY_ATTR(present),
|
||||
POWER_SUPPLY_ATTR(online),
|
||||
POWER_SUPPLY_ATTR(technology),
|
||||
POWER_SUPPLY_ATTR(voltage_max),
|
||||
POWER_SUPPLY_ATTR(voltage_min),
|
||||
POWER_SUPPLY_ATTR(voltage_max_design),
|
||||
POWER_SUPPLY_ATTR(voltage_min_design),
|
||||
POWER_SUPPLY_ATTR(voltage_now),
|
||||
|
|
|
|||
Loading…
Reference in a new issue