From: Paul Parsons <lost.distance@yahoo.com>
To: linux-kernel@vger.kernel.org
Cc: philipp.zabel@gmail.com, mad_soft@inbox.ru,
koen@dominion.thruhere.net, cbouatmailru@gmail.com
Subject: [PATCH] power/ds2760_battery: Add rated capacity of the hx4700 3600mAh battery
Date: Wed, 23 Nov 2011 22:37:15 +0000 (GMT) [thread overview]
Message-ID: <1322087835.12141.YahooMailClassic@web29020.mail.ird.yahoo.com> (raw)
Add rated capacity of the HP iPAQ hx4700 3.7V 3600mAh (359114-001) battery.
For this battery the value of the rated capacity EEPROM register at 0x32 is 14;
thus rated_capacities[14] = 3600.
Signed-off-by: Paul Parsons <lost.distance@yahoo.com>
---
diff -uprN clean-3.2-rc2/drivers/power/ds2760_battery.c linux-3.2-rc2/drivers/power/ds2760_battery.c
--- clean-3.2-rc2/drivers/power/ds2760_battery.c 2011-11-15 17:02:59.000000000 +0000
+++ linux-3.2-rc2/drivers/power/ds2760_battery.c 2011-11-23 22:06:46.816841888 +0000
@@ -95,7 +95,11 @@ static int rated_capacities[] = {
2880, /* Samsung */
2880, /* BYD */
2880, /* Lishen */
- 2880 /* NEC */
+ 2880, /* NEC */
+#ifdef CONFIG_MACH_H4700
+ 0,
+ 3600, /* HP iPAQ hx4700 3.7V 3600mAh (359114-001) */
+#endif
};
/* array is level at temps 0°C, 10°C, 20°C, 30°C, 40°C
next reply other threads:[~2011-11-23 22:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-23 22:37 Paul Parsons [this message]
2011-11-24 18:16 ` Philipp Zabel
2011-11-24 23:52 ` Paul Parsons
2011-11-25 23:56 ` Anton Vorontsov
2011-11-26 0:43 ` Anton Vorontsov
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=1322087835.12141.YahooMailClassic@web29020.mail.ird.yahoo.com \
--to=lost.distance@yahoo.com \
--cc=cbouatmailru@gmail.com \
--cc=koen@dominion.thruhere.net \
--cc=linux-kernel@vger.kernel.org \
--cc=mad_soft@inbox.ru \
--cc=philipp.zabel@gmail.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®