iio: adc: fsl-imx25-gcq: Use devm_* and dev_err_probe() to simplify probe
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 18 Feb 2024 17:27:25 +0000 (17:27 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 25 Mar 2024 19:50:09 +0000 (19:50 +0000)
commitf84aec5a6bb509b38c855ef9b40c7c458b87b4b0
tree901598e9780c440e0eeef2aecdda8de9e4517fe8
parent39d5790d0be1e5e82ded824f6b531bdcf5316390
iio: adc: fsl-imx25-gcq: Use devm_* and dev_err_probe() to simplify probe

Custom callbacks are need for regulators (so there is a handle to read
the voltage from) and the clk because it is retrieved from the parent
rather than directly from firmware description.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240218172731.1023367-3-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/fsl-imx25-gcq.c