ACPI: battery: Support for non-spec name for LiIon technology
authorAlexey Starikovskiy <astarikovskiy@suse.de>
Sun, 28 Oct 2007 12:33:10 +0000 (15:33 +0300)
committerLen Brown <len.brown@intel.com>
Mon, 29 Oct 2007 20:33:22 +0000 (16:33 -0400)
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>
drivers/acpi/battery.c

index 489d3385efe4424087ae227721654b9ff1d6ad85..74caa07ad35164981a017cf1376aa3d6179e2bef 100644 (file)
@@ -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;