iio: adc: spear_adc: Make use of device properties
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 28 Feb 2024 20:30:23 +0000 (22:30 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 25 Mar 2024 20:10:11 +0000 (20:10 +0000)
commit9266dba06876dd2d7e2f1709a19a8b1b3eb6caef
treea719f73c3bafeb1b6aba8f241dc152feff1f0bc9
parent582021f4e9f8003146aeec2125fafeadfe1139f8
iio: adc: spear_adc: Make use of device properties

Convert the module to be property provider agnostic and allow
it to be used on non-OF platforms.

Include mod_devicetable.h explicitly to replace the dropped of.h
which included mod_devicetable.h indirectly.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20240228203023.3609181-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/spear_adc.c