]> git.baikalelectronics.ru Git - kernel.git/commitdiff
iio: light: cm3232: Add mod_devicetable.h include and drop of_match_ptr
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 19 Apr 2020 15:02:02 +0000 (16:02 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 25 Apr 2020 14:40:00 +0000 (15:40 +0100)
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>
drivers/iio/light/cm3232.c

index cd3cfb7d02bd7b0461e872620df933f0f1f763cd..8672008256860f3b99e3e038271fe4bf07c0ef73 100644 (file)
@@ -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