Re: [PATCH] s3c_adc_battery: average over more than one adc sample

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
> ---

Applied, thanks!

-- 
Anton Vorontsov
Email: cbouatmailru@xxxxxxxxx
_______________________________________________
linux-pm mailing list
linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linuxfoundation.org/mailman/listinfo/linux-pm



[Index of Archives]     [Linux ACPI]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [CPU Freq]     [Kernel Newbies]     [Fedora Kernel]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux