Pull battery-2.6.24 into release branch
authorLen Brown <len.brown@intel.com>
Fri, 14 Dec 2007 03:16:14 +0000 (22:16 -0500)
committerLen Brown <len.brown@intel.com>
Fri, 14 Dec 2007 03:16:14 +0000 (22:16 -0500)
drivers/acpi/battery.c

index 7d6be23eff89f49a81b5ce55c3f44596bd7e4d8c..8f7505d304b58790c077e4bc257380eccf523117 100644 (file)
@@ -125,7 +125,7 @@ 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))
+       if (!strncasecmp("LI-ION", battery->type, 6))
                return POWER_SUPPLY_TECHNOLOGY_LION;
        if (!strcasecmp("LiP", battery->type))
                return POWER_SUPPLY_TECHNOLOGY_LIPO;