• Linus Walleij's avatar
    power: supply: ab8500: Standardize CV voltage · bc6e0287
    Linus Walleij authored
    The voltage used in the constant voltage phase of the charging
    exist in struct power_supply_battery_info as
    constant_charge_voltage_max_uv.
    
    Switch the custom property normal_vol_lvl to this and
    consequentially change everything that relates to this value
    over to using microvolts rather than millivolts so
    we align internal representation of current with the
    power core. Prefix every variable we change with *_uv
    to indicate the unit everywhere but also to make sure
    we do not miss any outlier.
    Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
    Signed-off-by: default avatarSebastian Reichel <sebastian.reichel@collabora.com>
    bc6e0287
ab8500-chargalg.h 1.37 KB