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

2017-04-11 Thread Pavel Machek
On Mon 2016-10-24 15:09:26, H. Nikolaus Schaller wrote: > Hi Pavel, > > > Am 24.10.2016 um 14:34 schrieb Pavel Machek : > > > > 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) { > > ... >

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

2016-10-24 Thread H. Nikolaus Schaller
Hi Pavel, > Am 24.10.2016 um 14:34 schrieb Pavel Machek : > > 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 shou

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

2016-10-24 Thread Pavel Machek
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 someth