diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-04-19 16:02:02 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-04-25 15:40:00 +0100 |
commit | 1de94b5945f2a3b1be29a235edf22af6d5b2f140 (patch) | |
tree | 68f1b924c7cd85acf501c235fa8bf5c53be0d724 /drivers | |
parent | 9065b78028c5a50f3c352f6fa904a7db9d470af3 (diff) | |
download | linux-1de94b5945f2a3b1be29a235edf22af6d5b2f140.tar.gz linux-1de94b5945f2a3b1be29a235edf22af6d5b2f140.tar.bz2 linux-1de94b5945f2a3b1be29a235edf22af6d5b2f140.zip |
iio: light: cm3232: Add mod_devicetable.h include and drop of_match_ptr
Enables ACPI probing via PRP0001 and removes an example that might
be cut and paste to a new driver.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/iio/light/cm3232.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iio/light/cm3232.c b/drivers/iio/light/cm3232.c index cd3cfb7d02bd..867200825686 100644 --- a/drivers/iio/light/cm3232.c +++ b/drivers/iio/light/cm3232.c @@ -10,6 +10,7 @@ #include <linux/i2c.h> #include <linux/module.h> +#include <linux/mod_devicetable.h> #include <linux/iio/iio.h> #include <linux/iio/sysfs.h> #include <linux/init.h> @@ -418,7 +419,7 @@ MODULE_DEVICE_TABLE(of, cm3232_of_match); static struct i2c_driver cm3232_driver = { .driver = { .name = "cm3232", - .of_match_table = of_match_ptr(cm3232_of_match), + .of_match_table = cm3232_of_match, #ifdef CONFIG_PM_SLEEP .pm = &cm3232_pm_ops, #endif |