summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Lechner <dlechner@baylibre.com>2023-10-12 19:18:13 +0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2023-10-14 15:53:45 +0300
commit73006239ef2313f1986f86af86f8b06150a807e9 (patch)
treeefb4e33e62b4f7922daa4c2d359bb67dbccaab0f
parent0f7fa242b355ed102deb49f8b85e0d0f0d323717 (diff)
downloadlinux-73006239ef2313f1986f86af86f8b06150a807e9.tar.xz
iio: resolver: ad2s1210: remove of_match_ptr()
To be consistent with the rest of iio, remove of_match_ptr(). It does not do anything useful here. Suggested-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: David Lechner <dlechner@baylibre.com> Link: https://lore.kernel.org/r/20231012-ad2s1210-mainline-v1-2-b2ee31c0e9dd@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
-rw-r--r--drivers/iio/resolver/ad2s1210.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iio/resolver/ad2s1210.c b/drivers/iio/resolver/ad2s1210.c
index 00562bc542bb..1bd1b950e7cc 100644
--- a/drivers/iio/resolver/ad2s1210.c
+++ b/drivers/iio/resolver/ad2s1210.c
@@ -54,7 +54,6 @@
#include <linux/gpio/consumer.h>
#include <linux/module.h>
#include <linux/mutex.h>
-#include <linux/of.h>
#include <linux/regmap.h>
#include <linux/slab.h>
#include <linux/spi/spi.h>
@@ -1508,7 +1507,7 @@ MODULE_DEVICE_TABLE(spi, ad2s1210_id);
static struct spi_driver ad2s1210_driver = {
.driver = {
.name = "ad2s1210",
- .of_match_table = of_match_ptr(ad2s1210_of_match),
+ .of_match_table = ad2s1210_of_match,
},
.probe = ad2s1210_probe,
.id_table = ad2s1210_id,