iio:potentiometer:ds1803: Drop of_match_ptr and CONFIG_OF protections
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 10 Sep 2020 17:32:06 +0000 (18:32 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 17 Sep 2020 18:13:38 +0000 (19:13 +0100)
commitc34bed923d40ef197412b0fa0b4b79892b7f6035
tree80abbf2b464e5d9901674712a05cb0e8a8532ff7
parent19061b3c590d20ed555cbe848427ef5e69d18559
iio:potentiometer:ds1803: 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.
Drop them to remove this restriction.

Also switch of.h for mod_devicetable.h include given use of
struct of_device_id which is defined in that header.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Slawomir Stepien <sst@poczta.fm>
Link: https://lore.kernel.org/r/20200910173242.621168-3-jic23@kernel.org
drivers/iio/potentiometer/ds1803.c