]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: bq24190_charger: Always call power_supply_get_battery_info()
authorHans de Goede <hdegoede@redhat.com>
Sun, 6 Feb 2022 18:35:39 +0000 (19:35 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Fri, 11 Feb 2022 18:08:34 +0000 (19:08 +0100)
commit153c352d74802a110313c506ea32cb9d542d4a17
tree8c4e54ad97a870da2de2f94cf562ece2b0b70ec0
parent7ff8226a14816423dfb46f4054ae3cd01d9b519a
power: supply: bq24190_charger: Always call power_supply_get_battery_info()

power_supply_get_battery_info() now also supports getting battery_info
on boards not using dt/of. Remove the of_node check. If neither of nor
other battery-info is present the function will fail making this change
a no-op in that case.

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