OSDN Git Service

iio: adc: nau7802: convert probe to full device-managed
authorAlexandru Ardelean <aardelean@deviqon.com>
Sun, 26 Sep 2021 15:49:32 +0000 (18:49 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 19 Oct 2021 07:27:34 +0000 (08:27 +0100)
commit4415381093fc54548f1a0dd3919abd7f5a72a4f2
tree2b0580b2e48dc8707b9213ef9360dc0c171d4c59
parent23a3b67c52d01b9f16d27694d5d871d445ca2f7b
iio: adc: nau7802: convert probe to full device-managed

This is a trivial conversion to device-managed functions.
The mutex_destroy() calls are redundant, as the data will be free'd anyway.

And the IRQ and IIO register functions both have device-managed
equivalents.

Signed-off-by: Alexandru Ardelean <aardelean@deviqon.com>
Reviewed-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20210926154932.3287590-1-aardelean@deviqon.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/nau7802.c