iio: adc: fsl-imx25-gcq: Switch from of specific handing to fwnode based.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 18 Feb 2024 17:27:24 +0000 (17:27 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 25 Mar 2024 19:50:09 +0000 (19:50 +0000)
commit39d5790d0be1e5e82ded824f6b531bdcf5316390
tree559675d26c4bbbf49ef492a3a592127ab4ef464f
parent8a85e72eaedc26acb5de768dc1bf53c7b4e3ada5
iio: adc: fsl-imx25-gcq: Switch from of specific handing to fwnode based.

Using the generic firmware data access functions from property.h
provides a number of advantages:
1) Works with different firmware types.
2) Doesn't provide a 'bad' example for new IIO drivers.
3) Lets us use the new _scoped() loops with automatic reference count
   cleanup for fwnode_handle

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