Skip to content

Commit 9065b78

Browse files
committed
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 <[email protected]> Reviewed-by: Alexandru Ardelean <[email protected]>
1 parent f73a047 commit 9065b78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/iio/light/cm32181.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include <linux/i2c.h>
1010
#include <linux/mutex.h>
1111
#include <linux/module.h>
12+
#include <linux/mod_devicetable.h>
1213
#include <linux/interrupt.h>
1314
#include <linux/regulator/consumer.h>
1415
#include <linux/iio/iio.h>
@@ -354,7 +355,7 @@ MODULE_DEVICE_TABLE(of, cm32181_of_match);
354355
static struct i2c_driver cm32181_driver = {
355356
.driver = {
356357
.name = "cm32181",
357-
.of_match_table = of_match_ptr(cm32181_of_match),
358+
.of_match_table = cm32181_of_match,
358359
},
359360
.id_table = cm32181_id,
360361
.probe = cm32181_probe,

0 commit comments

Comments
 (0)