OSDN Git Service

power: supply: bq24190_charger: Store ichg-max and vreg-max in bq24190_dev_info
authorHans de Goede <hdegoede@redhat.com>
Sun, 6 Feb 2022 18:35:40 +0000 (19:35 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 11 Feb 2022 18:08:34 +0000 (19:08 +0100)
commit73633ccbba38b9e7bc1ac0527f52cb421beb68f1
treed2ec9c95858d6c026f365aa7e392f127e9715c56
parenta314fae312639876ff00788c6b8a5dca55be3190
power: supply: bq24190_charger: Store ichg-max and vreg-max in bq24190_dev_info

Store ichg-max and vreg-max in bq24190_dev_info once from
bq24190_get_config() and drop the bq24190_charger_get_current_max() and
bq24190_charger_get_voltage_max() helpers.

This is a preparation patch for honoring the
constant_charge_current_max_ua and constant_charge_voltage_max_uv
values from power_supply_get_battery_info().

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
drivers/power/supply/bq24190_charger.c