From: Jonathan Cameron Date: Sun, 19 Apr 2020 15:02:01 +0000 (+0100) Subject: iio: light: cm32181: Add mod_devicetable.h and remove of_match_ptr X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9065b78028c5a50f3c352f6fa904a7db9d470af3;p=linux.git iio: light: cm32181: Add mod_devicetable.h and remove of_match_ptr Enables probing via the ACPI PRP0001 route but more is mosty about removing examples of this that might get copied into new drivers. Signed-off-by: Jonathan Cameron Reviewed-by: Alexandru Ardelean --- diff --git a/drivers/iio/light/cm32181.c b/drivers/iio/light/cm32181.c index 5f4fb5674fa0b..73c48f46220c6 100644 --- a/drivers/iio/light/cm32181.c +++ b/drivers/iio/light/cm32181.c @@ -9,6 +9,7 @@ #include #include #include +#include #include #include #include @@ -354,7 +355,7 @@ MODULE_DEVICE_TABLE(of, cm32181_of_match); static struct i2c_driver cm32181_driver = { .driver = { .name = "cm32181", - .of_match_table = of_match_ptr(cm32181_of_match), + .of_match_table = cm32181_of_match, }, .id_table = cm32181_id, .probe = cm32181_probe,