]> git.baikalelectronics.ru Git - kernel.git/commit
iio:potentiometer:ad5272: Drop of_match_ptr and CONFIG_OF protections.
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 10 Sep 2020 17:32:05 +0000 (18:32 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 17 Sep 2020 18:13:34 +0000 (19:13 +0100)
commit0d18c6bec59f89b338943c484c94e324fabd3ffe
tree7284562e2b19ab4df95245209625841ebed96320
parent7acba4079e7c6754b311d35fcc04bde4999c8e7c
iio:potentiometer:ad5272: 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 added 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: Phil Reid <preid@eletromag.com.au>
Link: https://lore.kernel.org/r/20200910173242.621168-2-jic23@kernel.org
drivers/iio/potentiometer/ad5272.c