Skip to content

Commit 77baa8d

Browse files
committed
iio: light: vl6180: add include of mod_devicetable.h and drop of_match_ptr
Enables probing via ACPI PRP0001 route and removes an example of an approach we no longer want people to copy. Signed-off-by: Jonathan Cameron <[email protected]> Reviewed-by: Alexandru Ardelean <[email protected]>
1 parent 645aee5 commit 77baa8d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/iio/light/vl6180.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*/
1717

1818
#include <linux/module.h>
19+
#include <linux/mod_devicetable.h>
1920
#include <linux/i2c.h>
2021
#include <linux/mutex.h>
2122
#include <linux/err.h>
@@ -537,7 +538,7 @@ MODULE_DEVICE_TABLE(i2c, vl6180_id);
537538
static struct i2c_driver vl6180_driver = {
538539
.driver = {
539540
.name = VL6180_DRV_NAME,
540-
.of_match_table = of_match_ptr(vl6180_of_match),
541+
.of_match_table = vl6180_of_match,
541542
},
542543
.probe = vl6180_probe,
543544
.id_table = vl6180_id,

0 commit comments

Comments
 (0)