extcon: extcon-max8997: Simplify driver using devm
authorMatti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Tue, 8 Jun 2021 10:10:53 +0000 (13:10 +0300)
committerHans de Goede <hdegoede@redhat.com>
Thu, 17 Jun 2021 11:22:27 +0000 (13:22 +0200)
commit87ee8de23c9df3a368504f34cf3d7f9be9207717
tree87fca9695e9fb4d467a5722fd136c8cc19177cab
parent610bdc04830a864115e6928fc944f1171dfff6f3
extcon: extcon-max8997: Simplify driver using devm

Simplify driver by switching to use the resource managed IRQ
requesting and resource managed work-queue initialization.

Signed-off-by: Matti Vaittinen <matti.vaittinen@fi.rohmeurope.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Link: https://lore.kernel.org/r/61190cc280a63baeb05ec570282bb3677bee8e7b.1623146580.git.matti.vaittinen@fi.rohmeurope.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
drivers/extcon/extcon-max8997.c