]> git.baikalelectronics.ru Git - kernel.git/commit
iio:adc:max1118: Drop CONFIG_OF / of_match_ptr protections
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 28 Jun 2020 12:36:42 +0000 (13:36 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 7 Jul 2020 19:24:09 +0000 (20:24 +0100)
commit10d11edd275f788779e57172b169382515539daa
treed380e7b3d15622b4c6ccd9a10be97f6c162f2032
parent4e605e2cf91ac26b5feb40d18dfb8fed1491a27b
iio:adc:max1118: Drop CONFIG_OF / of_match_ptr protections

These just stop the driver being used with ACPI PRP0001 and
we are trying to clear them out of IIO to avoid them getting copied
into new drivers.
Also add the mod_devicetable.h include as we are using
struct of_device_id which is defined in there.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Akinobu Mita <akinobu.mita@gmail.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
drivers/iio/adc/max1118.c