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>
This commit is contained in:
Carl Philipp Klemm 2021-04-23 15:00:57 +02:00 • committed by Sebastian Reichel
commit eab4e6d953