From: Anton Vorontsov <cbouatmailru@gmail.com>
To: "Heiko Stübner" <heiko@sntech.de>
Cc: Vasily Khoruzhick <anarsoul@gmail.com>,
Linux PM mailing list <linux-pm@lists.linux-foundation.org>,
David Woodhouse <dwmw2@infradead.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] s3c_adc_battery: average over more than one adc sample
Date: Fri, 6 Jan 2012 06:17:05 +0400 [thread overview]
Message-ID: <20120106021705.GC21540@oksana.dev.rtsoft.ru> (raw)
In-Reply-To: <201112291252.08563.heiko@sntech.de>
On Thu, Dec 29, 2011 at 12:52:07PM +0100, Heiko Stübner wrote:
> Some sources for adc battery information provide only inaccurate results
> where the read value differs from the real value with positive and negative
> offsets. For such sources it can be more accurate to collect two or more
> value sample and use the average of all collected values.
>
> This patch adds pdata options volt_samples, current_samples and
> backup_volt_samples to specifiy the number of samples to collect,
> reads the specified number of samples and calculates the average of those.
> For unset sample-number-values a default of 1 is assumed.
>
> Signed-off-by: Heiko Stuebner <heiko@sntech.de>
> ---
Applied, thanks!
--
Anton Vorontsov
Email: cbouatmailru@gmail.com
_______________________________________________
linux-pm mailing list
linux-pm@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-pm
next parent reply other threads:[~2012-01-06 2:17 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <201112291252.08563.heiko@sntech.de>
2012-01-06 2:17 ` Anton Vorontsov [this message]
2011-12-29 11:52 [PATCH] s3c_adc_battery: average over more than one adc sample Heiko Stübner
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=20120106021705.GC21540@oksana.dev.rtsoft.ru \
--to=cbouatmailru@gmail.com \
--cc=anarsoul@gmail.com \
--cc=dwmw2@infradead.org \
--cc=heiko@sntech.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@lists.linux-foundation.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).