aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAlexey Starikovskiy <astarikovskiy@suse.de>2007-10-28 15:33:10 +0300
committerLen Brown <len.brown@intel.com>2007-10-29 16:33:22 -0400
commit0bde7eee9489cc7cce08cf6eba05b4f42a6b2334 (patch)
tree0976db28333b5109984535325778e617e5d2f15b /drivers
parentACPI: battery: register power_supply subdevice only when battery is present (diff)
downloadlinux-dev-0bde7eee9489cc7cce08cf6eba05b4f42a6b2334.tar.xz
linux-dev-0bde7eee9489cc7cce08cf6eba05b4f42a6b2334.zip
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/acpi/battery.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c
index 489d3385efe4..74caa07ad351 100644
--- a/drivers/acpi/battery.c
+++ b/drivers/acpi/battery.c
@@ -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;