diff options
author | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-07-21 18:14:43 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-09-03 19:40:45 +0100 |
commit | ad5bd081c62be386e8f0fc360e452c6e9e3005a1 (patch) | |
tree | f09563d0fc7c6b644729f15194d039d432e94cb3 /drivers/iio/adc/ti-adc128s052.c | |
parent | 245d56d75ea6860c583fbd54382ad82bbd405910 (diff) | |
download | linux-ad5bd081c62be386e8f0fc360e452c6e9e3005a1.tar.gz linux-ad5bd081c62be386e8f0fc360e452c6e9e3005a1.tar.bz2 linux-ad5bd081c62be386e8f0fc360e452c6e9e3005a1.zip |
iio:adc:ti-adc128s052: drop of_match_ptr protection
There is no real advantage in having these protections and
for parts that do not have an explicit ACPI ID, it prevents the
use of PRP0001. I'm trying to clear this out of IIO in general
to avoid copying in new drivers.
Include mod_devicetable.h as we are using of_device_id in here so
including that header is best practice.
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Cc: Angelo Compagnucci <angelo.compagnucci@gmail.com>
Diffstat (limited to 'drivers/iio/adc/ti-adc128s052.c')
-rw-r--r-- | drivers/iio/adc/ti-adc128s052.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iio/adc/ti-adc128s052.c b/drivers/iio/adc/ti-adc128s052.c index e86f55ce093f..3143f35a6509 100644 --- a/drivers/iio/adc/ti-adc128s052.c +++ b/drivers/iio/adc/ti-adc128s052.c @@ -13,6 +13,7 @@ #include <linux/err.h> #include <linux/spi/spi.h> #include <linux/module.h> +#include <linux/mod_devicetable.h> #include <linux/iio/iio.h> #include <linux/property.h> #include <linux/regulator/consumer.h> @@ -220,7 +221,7 @@ MODULE_DEVICE_TABLE(acpi, adc128_acpi_match); static struct spi_driver adc128_driver = { .driver = { .name = "adc128s052", - .of_match_table = of_match_ptr(adc128_of_match), + .of_match_table = adc128_of_match, .acpi_match_table = ACPI_PTR(adc128_acpi_match), }, .probe = adc128_probe, |