Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <Jonathan.Cameron@huawei.com>
Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>

+4 -2
+2 -1
drivers/iio/light/st_uvis25_i2c.c
··· 9 9 10 10 #include <linux/kernel.h> 11 11 #include <linux/module.h> 12 + #include <linux/mod_devicetable.h> 12 13 #include <linux/i2c.h> 13 14 #include <linux/slab.h> 14 15 #include <linux/regmap.h> ··· 56 55 .driver = { 57 56 .name = "st_uvis25_i2c", 58 57 .pm = &st_uvis25_pm_ops, 59 - .of_match_table = of_match_ptr(st_uvis25_i2c_of_match), 58 + .of_match_table = st_uvis25_i2c_of_match, 60 59 }, 61 60 .probe = st_uvis25_i2c_probe, 62 61 .id_table = st_uvis25_i2c_id_table,
+2 -1
drivers/iio/light/st_uvis25_spi.c
··· 9 9 10 10 #include <linux/kernel.h> 11 11 #include <linux/module.h> 12 + #include <linux/mod_devicetable.h> 12 13 #include <linux/spi/spi.h> 13 14 #include <linux/slab.h> 14 15 #include <linux/regmap.h> ··· 56 55 .driver = { 57 56 .name = "st_uvis25_spi", 58 57 .pm = &st_uvis25_pm_ops, 59 - .of_match_table = of_match_ptr(st_uvis25_spi_of_match), 58 + .of_match_table = st_uvis25_spi_of_match, 60 59 }, 61 60 .probe = st_uvis25_spi_probe, 62 61 .id_table = st_uvis25_spi_id_table,