Thread (8 messages) 8 messages, 3 authors, 2023-09-13

Re: [PATCH -next 2/2] iio: adc: mt6577_auxadc: Simplify with device managed function

From: Jonathan Cameron <jic23@kernel.org>
Date: 2023-09-13 19:18:02
Also in: linux-iio, linux-mediatek

On Wed, 13 Sep 2023 10:56:28 +0200
AngeloGioacchino Del Regno [off-list ref] wrote:
Il 26/08/23 05:54, Jinjie Ruan ha scritto:
quoted
Add a device managed hook, via devm_add_action_or_reset() and
mt6577_power_off(), to power off on device detach.

Replace iio_device_register() by devm_iio_device_register() and remove
the mt6577_auxadc_remove() function used to unregister the device and
power off the device.

Remove platform_set_drvdata() from the probe function, since
platform_get_drvdata() is not used anymore.

Remove mt6577_auxadc_mod_reg() call from the probe function error path.

Signed-off-by: Jinjie Ruan <redacted>
Suggested-by: Jonathan Cameron <jic23@kernel.org>  
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Just missed. I finally pushed this out as non rebasing (rebased on rc1) on Monday.
Still the patches have a link back to here I think so people can see this if they
come looking!

Thanks

Jonathan

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help