OSDN Git Service

iio: adc: palmas: Take probe fully device managed.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 18 Mar 2023 16:30:39 +0000 (16:30 +0000)
committerJonathan Cameron <jonathan.cameron@huawei.com>
Thu, 13 Apr 2023 10:37:21 +0000 (11:37 +0100)
commit6d52b0e706989d48e1aa3b5263f6185770ab4af3
treeb18d1b7006b2becbb2da175c59c714661f87049c
parentdc3d25f22b889a326abc8331075849ea11b4f2bb
iio: adc: palmas: Take probe fully device managed.

Review of a recent fix highlighted that this driver could be trivially
converted to be entirely devm managed.

That fix should be applied to resolve the fix in a fashion easy to back port
even though this change removes the relevant code.

[1] https://patchwork.kernel.org/project/linux-iio/patch/20230313205029.1881745-1-risca@dalakolonin.se/

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Tested-by: Patrik Dahlström <risca@dalakolonin.se>
Reviewed-by: Patrik Dahlström <risca@dalakolonin.se>
Link: https://lore.kernel.org/r/20230318163039.56115-1-jic23@kernel.org
drivers/iio/adc/palmas_gpadc.c