iio:potentiometer:mcp4018: Drop of_match_ptr and CONFIG_OF protections.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 10 Sep 2020 17:32:10 +0000 (18:32 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 21 Sep 2020 17:41:26 +0000 (18:41 +0100)
commit6fad8ae45692a12596d88f6e26103e35624c65c7
treef583a467d6b1e5b8fbecfb07df2479ed82bcc5d7
parent9c5149cd92e477b83550a28e486e3c72c2724257
iio:potentiometer:mcp4018: Drop of_match_ptr and CONFIG_OF protections.

These prevent use of this driver with ACPI via PRP0001 and are
an example of an anti pattern I'm trying to remove from IIO.
Also use device_get_match_data() rather than devicetree only version.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Peter Rosin <peda@axentia.se>
Link: https://lore.kernel.org/r/20200910173242.621168-7-jic23@kernel.org
drivers/iio/potentiometer/mcp4018.c