Skip to content

Commit 7300623

Browse files
dlechjic23
authored andcommitted
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>
1 parent 0f7fa24 commit 7300623

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

drivers/iio/resolver/ad2s1210.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
#include <linux/gpio/consumer.h>
5555
#include <linux/module.h>
5656
#include <linux/mutex.h>
57-
#include <linux/of.h>
5857
#include <linux/regmap.h>
5958
#include <linux/slab.h>
6059
#include <linux/spi/spi.h>
@@ -1508,7 +1507,7 @@ MODULE_DEVICE_TABLE(spi, ad2s1210_id);
15081507
static struct spi_driver ad2s1210_driver = {
15091508
.driver = {
15101509
.name = "ad2s1210",
1511-
.of_match_table = of_match_ptr(ad2s1210_of_match),
1510+
.of_match_table = ad2s1210_of_match,
15121511
},
15131512
.probe = ad2s1210_probe,
15141513
.id_table = ad2s1210_id,

0 commit comments

Comments
 (0)