[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20120106021705.GC21540@oksana.dev.rtsoft.ru>
Date: Fri, 6 Jan 2012 06:17:05 +0400
From: Anton Vorontsov <cbouatmailru@...il.com>
To: Heiko Stübner <heiko@...ech.de>
Cc: David Woodhouse <dwmw2@...radead.org>,
Vasily Khoruzhick <anarsoul@...il.com>,
linux-kernel@...r.kernel.org,
Linux PM mailing list <linux-pm@...ts.linux-foundation.org>
Subject: Re: [PATCH] s3c_adc_battery: average over more than one adc sample
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@...ech.de>
> ---
Applied, thanks!
--
Anton Vorontsov
Email: cbouatmailru@...il.com
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists