]> 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)
commit363ae24a1bbec1f49ab9c28941bdb77922a85ccb
treeeb38a19f8d5633095e7e5af88a2ab19d932e40d7
parentb50ca5b8b2d82cad606cc0129f5da4a664120f12
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