Commit 77baa8d6 authored by Jonathan Cameron's avatar Jonathan Cameron

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: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: default avatarAlexandru Ardelean <alexandru.ardelean@analog.com>
parent 645aee51
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
*/ */
#include <linux/module.h> #include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/i2c.h> #include <linux/i2c.h>
#include <linux/mutex.h> #include <linux/mutex.h>
#include <linux/err.h> #include <linux/err.h>
...@@ -537,7 +538,7 @@ MODULE_DEVICE_TABLE(i2c, vl6180_id); ...@@ -537,7 +538,7 @@ MODULE_DEVICE_TABLE(i2c, vl6180_id);
static struct i2c_driver vl6180_driver = { static struct i2c_driver vl6180_driver = {
.driver = { .driver = {
.name = VL6180_DRV_NAME, .name = VL6180_DRV_NAME,
.of_match_table = of_match_ptr(vl6180_of_match), .of_match_table = vl6180_of_match,
}, },
.probe = vl6180_probe, .probe = vl6180_probe,
.id_table = vl6180_id, .id_table = vl6180_id,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment