projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
508df92
)
ACPI: battery: Support for non-spec name for LiIon technology
author
Alexey Starikovskiy
<astarikovskiy@suse.de>
Sun, 28 Oct 2007 12:33:10 +0000
(15:33 +0300)
committer
Len 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/acpi/battery.c
b/drivers/acpi/battery.c
index 489d3385efe4424087ae227721654b9ff1d6ad85..74caa07ad35164981a017cf1376aa3d6179e2bef 100644
(file)
--- 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;