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

Refactor the IRQ initialization code:

* Move the looking up of the vIRQs to the beginning of probe(), failing
  probe early if this fails
* Do the actual requesting of IRQs inline in probe() and properly abort
  probe() on errors
* Use devm_request_threaded_irq(), completing the conversion of probe() to
  only use devm managed resources and remove the remove() driver function.

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