generic-adc-battery volatge-to-percent formula
From: Belisko Marek <hidden>
Date: 2016-02-11 20:38:23
Hi, some time ago I did post series which added some conversion table from voltage to percent for charging and discharging states [1] in twl4030_madc driver. This approach was not accepted and we still want to have something like that in kernel. We re-think re-thinking original idea and also get reference where Pavel point us to formula which could be used for computing voltage-to-percent conversion [2] What about adding this formula as a default for the voltage-to-percent-conversion to the generic-adc-battery driver (and converting it to DT)? Would that be a better solution than a table driven and twl4030 only driver? [1] - http://www.serverphorums.com/read.php?12,1127548 [2] - https://lkml.org/lkml/2015/4/1/557 Many thanks. BR, marek -- as simple and primitive as possible ------------------------------------------------- Marek Belisko - OPEN-NANDRA Freelance Developer Ruska Nova Ves 219 | Presov, 08005 Slovak Republic Tel: +421 915 052 184 skype: marekwhite twitter: #opennandra web: http://open-nandra.com