iio:adc:axp20x: Convert from OF to generic fw / device properties
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 9 Aug 2020 14:13:05 +0000 (15:13 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 3 Sep 2020 18:40:46 +0000 (19:40 +0100)
commit81f434f01722c8f95c59fc24c5e09f508a07a0ca
tree1f01766e8d9771c9b59e23cf206d1957799d9e72
parent75caa303d79dd598a300a07f9e5ff7fa23c5cf9b
iio:adc:axp20x: Convert from OF to generic fw / device properties

Whilst fairly unlikely anyone will ever use this driver with anything
other than DT, we are trying to move IIO over to the generic interfaces
where easy to do so.

In this case this involved moving to generic check on presence
of fwnode, generic device_get_match_data() and dropping the of_match_ptr
protection.  Also relevant header changes to have property.h and
mod_devicetable.h only.

Also drop the casting away of a const in favour of retaining
the const throughout.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Quentin Schulz <quentin.schulz@bootlin.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
drivers/iio/adc/axp20x_adc.c