hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/iio/resolver/ad2s1200.c
....@@ -1,21 +1,18 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * ad2s1200.c simple support for the ADI Resolver to Digital Converters:
34 * AD2S1200/1205
45 *
56 * Copyright (c) 2018-2018 David Veenstra <davidjulianveenstra@gmail.com>
67 * Copyright (c) 2010-2010 Analog Devices Inc.
7
- *
8
- * This program is free software; you can redistribute it and/or modify
9
- * it under the terms of the GNU General Public License version 2 as
10
- * published by the Free Software Foundation.
118 */
129
1310 #include <linux/bitops.h>
1411 #include <linux/delay.h>
1512 #include <linux/device.h>
16
-#include <linux/gpio.h>
1713 #include <linux/gpio/consumer.h>
1814 #include <linux/module.h>
15
+#include <linux/mod_devicetable.h>
1916 #include <linux/mutex.h>
2017 #include <linux/spi/spi.h>
2118 #include <linux/sysfs.h>
....@@ -161,7 +158,6 @@
161158 return PTR_ERR(st->rdvel);
162159 }
163160
164
- indio_dev->dev.parent = &spi->dev;
165161 indio_dev->info = &ad2s1200_info;
166162 indio_dev->modes = INDIO_DIRECT_MODE;
167163 indio_dev->channels = ad2s1200_channels;
....@@ -197,7 +193,7 @@
197193 static struct spi_driver ad2s1200_driver = {
198194 .driver = {
199195 .name = DRV_NAME,
200
- .of_match_table = of_match_ptr(ad2s1200_of_match),
196
+ .of_match_table = ad2s1200_of_match,
201197 },
202198 .probe = ad2s1200_probe,
203199 .id_table = ad2s1200_id,