[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20070504095956.GB17455@elf.ucw.cz>
Date: Fri, 4 May 2007 11:59:56 +0200
From: Pavel Machek <pavel@....cz>
To: Anton Vorontsov <cbou@...l.ru>
Cc: linux-kernel@...r.kernel.org, kernel-discuss@...dhelds.org,
dwmw2@...radead.org, Greg KH <greg@...ah.com>,
Randy Dunlap <randy.dunlap@...cle.com>,
Shem Multinymous <multinymous@...il.com>,
Henrique de Moraes Holschuh <hmh@....eng.br>,
Matthew Garrett <mjg59@...f.ucam.org>
Subject: Re: [PATCH 3/7] [RFC] Battery monitoring class
Hi!
> > I'll convert mXh to uXh a bit later, if there will no further objections
> > against uXh. Also I'd like to hear if there any objections on
> > mA/mV -> uA/uV conversion. I think we'd better keep all units at the
> > same order/precision.
>
> Okay, would it make sense to use "long" instead of "int" after "milli" to
> "micro" conversion? On 32 bit machines int gives +-2147483648 limit. So
> 2147 volts/amperes/...
long == int on 32bit machines.
> Though 2147 amperes is unrealistic for batteries, but if used in
> calculations it could be dangerous.
Let the one doing calculations handle that ;-).
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
-
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