• Tony Lindgren's avatar
    power: supply: cpcap-battery: Use charger status for battery full detection · bb8b9a98
    Tony Lindgren authored
    We now get battery full notification from cpcap-charger, so let's use that
    for battery full status and charger disconnect.
    
    Note that any current based battery full detection we have tried earlier is
    flakey as it won't account for example for CPU load increasing the battery
    current. Anyways, if current based battery full detection is also still
    needed, we can reconsider adding it in addition to the charger status based
    detection.
    
    Cc: Arthur Demchenkov <spinal.by@gmail.com>
    Cc: Carl Philipp Klemm <philipp@uvos.xyz>
    Cc: Merlijn Wajer <merlijn@wizzup.org>
    Cc: Pavel Machek <pavel@ucw.cz>
    Signed-off-by: default avatarTony Lindgren <tony@atomide.com>
    Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
    bb8b9a98
cpcap-battery.c 26.6 KB