iio:potentiometer:max5432: Drop of_match_ptr and use generic fw accessors
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 10 Sep 2020 17:32:07 +0000 (18:32 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 21 Sep 2020 17:41:08 +0000 (18:41 +0100)
commit458c7665f82afe361746107212ff6122d8d3f8f7
tree77cd7fb0e56f28f034566cdfd7060ffbe19ca2e7
parentc34bed923d40ef197412b0fa0b4b79892b7f6035
iio:potentiometer:max5432: Drop of_match_ptr and use generic fw accessors

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 headers to reflect this change.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20200910173242.621168-4-jic23@kernel.org
drivers/iio/potentiometer/max5432.c