power: supply: cpcap-charger: get the battery inserted infomation from cpcap-battery
authorCarl Philipp Klemm <philipp@uvos.xyz>
Fri, 23 Apr 2021 13:00:57 +0000 (15:00 +0200)
committerSebastian Reichel <sre@kernel.org>
Fri, 4 Jun 2021 12:36:17 +0000 (14:36 +0200)
commiteab4e6d953c1059a30ac0f15826abc7dd2374d3c
treef2cb7006db7dc9606a17090defbe391dbfc0e882
parentaecd127b45eac8ce0ff667a4a855ff66905fb88c
power: supply: cpcap-charger: get the battery inserted infomation from cpcap-battery

This avoids reimplementing the detection logic twice and removes the
possibility of activating charging with 500mA even if a battery is not
detected.

Signed-off-by: Carl Philipp Klemm <philipp@uvos.xyz>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/cpcap-charger.c