Skip to content

Commit 0741678

Browse files
committed
iio: light: opt3001: Add mod_devicetable.h and drop use of of_match_ptr
Enables probing via ACPI PRP0001 but mostly about removing examples that might be copied to new drivers. Signed-off-by: Jonathan Cameron <[email protected]> Reviewed-by: Alexandru Ardelean <[email protected]>
1 parent de1cbfe commit 0741678

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/iio/light/opt3001.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <linux/irq.h>
1717
#include <linux/kernel.h>
1818
#include <linux/module.h>
19+
#include <linux/mod_devicetable.h>
1920
#include <linux/mutex.h>
2021
#include <linux/slab.h>
2122
#include <linux/types.h>
@@ -844,7 +845,7 @@ static struct i2c_driver opt3001_driver = {
844845

845846
.driver = {
846847
.name = "opt3001",
847-
.of_match_table = of_match_ptr(opt3001_of_match),
848+
.of_match_table = opt3001_of_match,
848849
},
849850
};
850851

0 commit comments

Comments
 (0)