All of lore.kernel.org
 help / color / mirror / Atom feed
From: eric.dumazet@gmail.com (Eric Dumazet)
To: linux-arm-kernel@lists.infradead.org
Subject: [patch] spitz: better voltage-to-percentage conversion
Date: Fri, 27 Nov 2009 09:07:32 +0100	[thread overview]
Message-ID: <4B0F88C4.9010206@gmail.com> (raw)
In-Reply-To: <20091127073119.GB1405@ucw.cz>

Pavel Machek a ?crit :
> Old code has two huge tables... unfortunately those tables are simple
> linear relationships and wrong: li-ions do not behave like that.
> 
> Convert physical values to mV,mA,mOhm, add computation that makes
> sense for physical point of view, and provide tables based on
> measurements.
> 
> To get even better results, we should provide better battery_current
> estimate (taking backlight into account), and adjust adjust
> battery_resistance according to its age and temperature. 
> 
> Signed-off-by: Pavel Machek <pavel@ucw.cz>
> 
> 
> --- a/arch/arm/mach-pxa/corgi_pm.c	2009-11-23 20:48:26.000000000 +0100

> +typedef int miliamp_t;
> +typedef int miliohm_t;
> +typedef int milivolt_t;

milliamp, milliohm, millivolt ?

WARNING: multiple messages have this Message-ID (diff)
From: Eric Dumazet <eric.dumazet@gmail.com>
To: Pavel Machek <pavel@ucw.cz>
Cc: rpurdie@rpsys.net, lenz@cs.wisc.edu,
	kernel list <linux-kernel@vger.kernel.org>,
	Dirk@Opfer-Online.de, arminlitzel@web.de,
	Cyril Hrubis <metan@ucw.cz>,
	thommycheck@gmail.com,
	linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
	dbaryshkov@gmail.com, omegamoon@gmail.com, eric.y.miao@gmail.com,
	utx@penguin.cz
Subject: Re: [patch] spitz: better voltage-to-percentage conversion
Date: Fri, 27 Nov 2009 09:07:32 +0100	[thread overview]
Message-ID: <4B0F88C4.9010206@gmail.com> (raw)
In-Reply-To: <20091127073119.GB1405@ucw.cz>

Pavel Machek a écrit :
> Old code has two huge tables... unfortunately those tables are simple
> linear relationships and wrong: li-ions do not behave like that.
> 
> Convert physical values to mV,mA,mOhm, add computation that makes
> sense for physical point of view, and provide tables based on
> measurements.
> 
> To get even better results, we should provide better battery_current
> estimate (taking backlight into account), and adjust adjust
> battery_resistance according to its age and temperature. 
> 
> Signed-off-by: Pavel Machek <pavel@ucw.cz>
> 
> 
> --- a/arch/arm/mach-pxa/corgi_pm.c	2009-11-23 20:48:26.000000000 +0100

> +typedef int miliamp_t;
> +typedef int miliohm_t;
> +typedef int milivolt_t;

milliamp, milliohm, millivolt ?


  reply	other threads:[~2009-11-27  8:07 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-27  7:31 [patch] spitz: better voltage-to-percentage conversion Pavel Machek
2009-11-27  7:31 ` Pavel Machek
2009-11-27  8:07 ` Eric Dumazet [this message]
2009-11-27  8:07   ` Eric Dumazet
2009-11-27  8:54 ` Russell King - ARM Linux
2009-11-27  8:54   ` Russell King - ARM Linux
2009-11-29  9:16   ` Pavel Machek
2009-11-29  9:16     ` Pavel Machek
  -- strict thread matches above, loose matches on Subject: below --
2009-11-29  9:13 Pavel Machek
2009-11-29  9:13 ` Pavel Machek

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=4B0F88C4.9010206@gmail.com \
    --to=eric.dumazet@gmail.com \
    --cc=linux-arm-kernel@lists.infradead.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.