Re: generic-adc-battery volatge-to-percent formula

From: Pavel Machek
Date: Mon Oct 24 2016 - 08:34:14 EST


Hi!

> On Mon, Feb 22, 2016 at 06:58:13AM +0100, H. Nikolaus Schaller wrote:
> > >> static inline int fuel_level_LiIon(int mV, int mA, int mOhm) {
> > >> ...
> > >> }
> >
> > To which header file should this go?
>
> I think it should get its own header file in include/linux/power/.
> Maybe something like "generic-fuel-gauge.h". I'm open to other
> solutions, though.

I'd like to use use this formula in my own code. Is it somewhere in
the kernel already?

Thanks,
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html

Attachment: signature.asc
Description: Digital signature