]> 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)
commit45231dc698d80b312258e2a07b46e5a8040cb716
tree990f078bc2bfe3ac072b550fa27dde9579cfb6c2
parente80a59b131b885c70874b45fb8d7f99adda3db44
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