Skip to content

Commit

Permalink
iio: light: cm32181: Add mod_devicetable.h and remove of_match_ptr
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
jic23 committed Apr 25, 2020
1 parent f73a047 commit 9065b78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/iio/light/cm32181.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
#include <linux/i2c.h>
#include <linux/mutex.h>
#include <linux/module.h>
#include <linux/mod_devicetable.h>
#include <linux/interrupt.h>
#include <linux/regulator/consumer.h>
#include <linux/iio/iio.h>
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 9065b78

Please sign in to comment.