Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1507156

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

From Pavel Machek <pavel@ucw.cz>
Newsgroups linux.kernel
Subject Re: generic-adc-battery volatge-to-percent formula
Date 2016-10-24 14:40 +0200
Message-ID <svMHM-7B9-33@gated-at.bofh.it> (permalink)
References (4 earlier) <svMHM-7B9-43@gated-at.bofh.it> <svMHM-7B9-45@gated-at.bofh.it> <svMHM-7B9-47@gated-at.bofh.it> <svMHM-7B9-49@gated-at.bofh.it> <svMHM-7B9-51@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

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

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Re: generic-adc-battery volatge-to-percent formula Pavel Machek <pavel@ucw.cz> - 2016-10-24 14:40 +0200
  Re: generic-adc-battery volatge-to-percent formula "H. Nikolaus Schaller" <hns@goldelico.com> - 2016-10-24 15:10 +0200

csiph-web