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)
commit70c9fc9a5605b747ff4d2c276d277833560e09fe
tree990f078bc2bfe3ac072b550fa27dde9579cfb6c2
parent1e45330bd29067f1d0a1319e06798f2b284dbfe6
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