power: supply: cpcap-charger: Improve battery detection
authorTony Lindgren <tony@atomide.com>
Wed, 16 Oct 2019 22:30:05 +0000 (15:30 -0700)
committerSebastian Reichel <sre@kernel.org>
Sun, 20 Oct 2019 18:26:17 +0000 (20:26 +0200)
commit50fc99f83f102c60a9429f451594019a6a978103
tree65fe146110e5133ded9b4e1c57fee9b6fddec8aa
parent639c1524da3b273d20c42ff2387d08eb4b12e903
power: supply: cpcap-charger: Improve battery detection

We are currently using a wrong ADC range for the battery detection.
The ADC returns the battery temperature if connected.

Cc: Merlijn Wajer <merlijn@wizzup.org>
Cc: Pavel Machek <pavel@ucw.cz>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/cpcap-charger.c