Skip to content

Commit 645aee5

Browse files
committed
iio: light: st_uvis25: Add mod_devicetable.h and drop of_match_ptr
Enables probing via ACPI PRP0001 and removes an example that we don't want people to cut and paste into new drivers. Signed-off-by: Jonathan Cameron <[email protected]> Reviewed-by: Alexandru Ardelean <[email protected]>
1 parent 0741678 commit 645aee5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

drivers/iio/light/st_uvis25_i2c.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#include <linux/kernel.h>
1111
#include <linux/module.h>
12+
#include <linux/mod_devicetable.h>
1213
#include <linux/i2c.h>
1314
#include <linux/slab.h>
1415
#include <linux/regmap.h>
@@ -55,7 +56,7 @@ static struct i2c_driver st_uvis25_driver = {
5556
.driver = {
5657
.name = "st_uvis25_i2c",
5758
.pm = &st_uvis25_pm_ops,
58-
.of_match_table = of_match_ptr(st_uvis25_i2c_of_match),
59+
.of_match_table = st_uvis25_i2c_of_match,
5960
},
6061
.probe = st_uvis25_i2c_probe,
6162
.id_table = st_uvis25_i2c_id_table,

drivers/iio/light/st_uvis25_spi.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
#include <linux/kernel.h>
1111
#include <linux/module.h>
12+
#include <linux/mod_devicetable.h>
1213
#include <linux/spi/spi.h>
1314
#include <linux/slab.h>
1415
#include <linux/regmap.h>
@@ -55,7 +56,7 @@ static struct spi_driver st_uvis25_driver = {
5556
.driver = {
5657
.name = "st_uvis25_spi",
5758
.pm = &st_uvis25_pm_ops,
58-
.of_match_table = of_match_ptr(st_uvis25_spi_of_match),
59+
.of_match_table = st_uvis25_spi_of_match,
5960
},
6061
.probe = st_uvis25_spi_probe,
6162
.id_table = st_uvis25_spi_id_table,

0 commit comments

Comments
 (0)