mirror of
https://github.com/torvalds/linux.git
synced 2024-11-01 01:31:44 +00:00
ACPI: battery: Support for non-spec name for LiIon technology
Support Li-Ion as possible name for technology. Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de> Signed-off-by: Len Brown <len.brown@intel.com>
This commit is contained in:
parent
508df92d1f
commit
0bde7eee94
@ -125,6 +125,8 @@ static int acpi_battery_technology(struct acpi_battery *battery)
|
||||
return POWER_SUPPLY_TECHNOLOGY_NiMH;
|
||||
if (!strcasecmp("LION", battery->type))
|
||||
return POWER_SUPPLY_TECHNOLOGY_LION;
|
||||
if (!strcasecmp("LI-ION", battery->type))
|
||||
return POWER_SUPPLY_TECHNOLOGY_LION;
|
||||
if (!strcasecmp("LiP", battery->type))
|
||||
return POWER_SUPPLY_TECHNOLOGY_LIPO;
|
||||
return POWER_SUPPLY_TECHNOLOGY_UNKNOWN;
|
||||
|
Loading…
Reference in New Issue
Block a user