iio: proximity: srf04: Make use of device properties
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 4 May 2022 11:35:57 +0000 (14:35 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 11 Jun 2022 13:35:25 +0000 (14:35 +0100)
commitcffc293dd92e429a9857cb5565cdfc526e25fb08
treea047da30f3c06dd4b61e878b865855265fd491a9
parentbf5ff730dcc2540d39ed572f551f79524c4d7eb8
iio: proximity: srf04: Make use of device properties

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

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