diff options
author | Len Brown | 2007-12-14 04:16:14 +0100 |
---|---|---|
committer | Len Brown | 2007-12-14 04:16:14 +0100 |
commit | d020c36685a35f66be89700e911c7d77a67bdc43 (patch) | |
tree | 86c03cd323fefe5b3aa06939a05de82f2f19b1a3 | |
parent | Pull thinkpad-2.6.24 into release branch (diff) | |
parent | ACPI: battery: fix ACPI battery technology reporting (diff) | |
download | kernel-qcow2-linux-d020c36685a35f66be89700e911c7d77a67bdc43.tar.gz kernel-qcow2-linux-d020c36685a35f66be89700e911c7d77a67bdc43.tar.xz kernel-qcow2-linux-d020c36685a35f66be89700e911c7d77a67bdc43.zip |
Pull battery-2.6.24 into release branch
-rw-r--r-- | drivers/acpi/battery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c index 7d6be23eff89..8f7505d304b5 100644 --- a/drivers/acpi/battery.c +++ b/drivers/acpi/battery.c @@ -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; |