]> err.no Git - linux-2.6/commit
ACPI: battery: fix ACPI battery technology reporting
authorAndrey Borzenkov <arvidjaar@mail.ru>
Sat, 10 Nov 2007 17:02:49 +0000 (20:02 +0300)
committerLen Brown <len.brown@intel.com>
Fri, 7 Dec 2007 03:29:22 +0000 (22:29 -0500)
commitad40e68bf5c54831cd6b2199fd24d616bac179f7
tree9d2fd20462e854f74df4b8cb2d30651383942ed4
parentf194d132e4971111f85c18c96067acffb13cee6d
ACPI: battery: fix ACPI battery technology reporting

At least some systems report technology information with trailing spaces:

{pts/1}% cat -E /var/tmp/bat/2.6.23 | grep type
battery type:            Li-ION  $

Use strncasecmp to compare model string to skip trailing part

Signed-off-by: Andrey Borzenkov <arvidjaar@mail.ru>
Acked-by: Alexey Starikovskiy <astarikovskiy@suse.de>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/battery.c