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)
commit0b80eb6c3832447a28634dc2611cd2a8f53aa189
treeeb38a19f8d5633095e7e5af88a2ab19d932e40d7
parentb2657167447a059990827809e5ef3e6a56c700d8
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