iio:dac:ad7303: Drop of_match_ptr protection
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 10 Sep 2020 17:32:16 +0000 (18:32 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 21 Sep 2020 17:41:28 +0000 (18:41 +0100)
commit34860a19a3ac5546757cacfba191cb2b635835c3
treebe4a80c4fb760c9b27bda60ab097d741fb9090b9
parentfe506cc5af0b5c44ce593467c0500dd16bf78919
iio:dac:ad7303: Drop of_match_ptr protection

This prevents use of this driver with ACPI via PRP0001 and are
an example of an anti pattern I'm trying to remove from IIO.

Also add mod_devicetable.h include given struct of_device_id is
declared there.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Michael Hennerich <michael.hennerich@analog.com>
Cc: Lars-Peter Clausen <lars@metafoo.de>
Link: https://lore.kernel.org/r/20200910173242.621168-13-jic23@kernel.org
drivers/iio/dac/ad7303.c