]> git.baikalelectronics.ru Git - kernel.git/commit
power: supply: axp288_fuel_gauge: Add axp288_fuel_gauge_read_initial_regs()
authorHans de Goede <hdegoede@redhat.com>
Thu, 6 Jan 2022 11:06:03 +0000 (12:06 +0100)
committerSebastian Reichel <sebastian.reichel@collabora.com>
Tue, 1 Feb 2022 13:29:34 +0000 (14:29 +0100)
commit0e5fca5a55deea52078a2bf03c6f66d450c3f7ba
treeeb38a19f8d5633095e7e5af88a2ab19d932e40d7
parente10b3e4be8e2619a0eef8393f3342802d9aec191
power: supply: axp288_fuel_gauge: Add axp288_fuel_gauge_read_initial_regs()

Refactor probe a bit, introducing a new
axp288_fuel_gauge_read_initial_regs() helper. This replaces a whole
bunch of gotos and removes the unblock_punit_i2c_access label.

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