From: Alexey Starikovskiy <astarikovskiy@suse.de>
To: LenBrown <lenb@kernel.org>
Cc: Linux-acpi@vger.kernel.org
Subject: [PATCH] ACPI: battery: Support for non-spec name for LiIon technology
Date: Sun, 28 Oct 2007 15:33:10 +0300 [thread overview]
Message-ID: <20071028123310.13302.69554.stgit@samsung> (raw)
In-Reply-To: <3e7b9f4b0710280524u1898296ase70f70c9cd03ced0@mail.gmail.com>
Support Li-Ion as possible name for technology.
Signed-off-by: Alexey Starikovskiy <astarikovskiy@suse.de>
---
drivers/acpi/battery.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/drivers/acpi/battery.c b/drivers/acpi/battery.c
index 6c06879..06b68de 100644
--- 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;
next prev parent reply other threads:[~2007-10-28 12:33 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-24 18:14 2.6.24-rc1 acpi battery driver -> sysfs interface does not update correctly Ash Milsted
2007-10-24 18:53 ` Alexey Starikovskiy
2007-10-24 19:52 ` Ash Milsted
2007-10-24 20:23 ` Ash Milsted
2007-10-24 20:32 ` Alexey Starikovskiy
2007-10-24 21:17 ` Ash Milsted
2007-10-24 21:49 ` Alexey Starikovskiy
2007-10-24 22:28 ` Ash Milsted
2007-10-24 22:37 ` Ash Milsted
2007-10-25 3:08 ` Alexey Starikovskiy
2007-10-25 9:31 ` Ash Milsted
2007-10-27 16:52 ` Ash Milsted
2007-10-27 17:22 ` Alexey Starikovskiy
2007-10-28 12:06 ` Ash Milsted
[not found] ` <3e7b9f4b0710280524u1898296ase70f70c9cd03ced0@mail.gmail.com>
2007-10-28 12:33 ` Alexey Starikovskiy [this message]
2007-10-28 12:40 ` Alexey Starikovskiy
2007-10-28 12:58 ` Alexey Starikovskiy
2007-10-28 14:03 ` Ash Milsted
2007-10-28 14:27 ` Alexey Starikovskiy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071028123310.13302.69554.stgit@samsung \
--to=astarikovskiy@suse.de \
--cc=Linux-acpi@vger.kernel.org \
--cc=lenb@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.