]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: cpcap-charger: Fix charger voltages based on ADC values
authorTony Lindgren <tony@atomide.com>
Thu, 4 May 2017 00:26:14 +0000 (17:26 -0700)
committerSebastian Reichel <sre@kernel.org>
Sun, 14 May 2017 16:26:13 +0000 (18:26 +0200)
commitf435b218d79aba21b3e988a83ee6668eab0049ab
tree990f078bc2bfe3ac072b550fa27dde9579cfb6c2
parentaed2a6a173dd9633eacb95000e8ab09d5ca252fd
power: supply: cpcap-charger: Fix charger voltages based on ADC values

With the ADC driver working, we can now fix the voltage table based on
the values read from the ADC.

Note that unlike the ICHRG registers, the VCHRG register bits don't
match the MC13783UG.pdf.

Cc: Marcel Partap <mpartap@gmx.net>
Cc: Michael Scott <michael.scott@linaro.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/supply/cpcap-charger.c