hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/iio/temperature/tsys01.c
....@@ -1,9 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * tsys01.c - Support for Measurement-Specialties tsys01 temperature sensor
34 *
45 * Copyright (c) 2015 Measurement-Specialties
5
- *
6
- * Licensed under the GPL-2.
76 *
87 * Datasheet:
98 * http://www.meas-spec.com/downloads/TSYS01_Digital_Temperature_Sensor.pdf
....@@ -14,6 +13,7 @@
1413 #include <linux/device.h>
1514 #include <linux/mutex.h>
1615 #include <linux/module.h>
16
+#include <linux/mod_devicetable.h>
1717 #include <linux/init.h>
1818 #include <linux/kernel.h>
1919 #include <linux/stat.h>
....@@ -161,7 +161,6 @@
161161
162162 indio_dev->info = &tsys01_info;
163163 indio_dev->name = dev->driver->name;
164
- indio_dev->dev.parent = dev;
165164 indio_dev->modes = INDIO_DIRECT_MODE;
166165 indio_dev->channels = tsys01_channels;
167166 indio_dev->num_channels = ARRAY_SIZE(tsys01_channels);
....@@ -224,7 +223,7 @@
224223 .id_table = tsys01_id,
225224 .driver = {
226225 .name = "tsys01",
227
- .of_match_table = of_match_ptr(tsys01_of_match),
226
+ .of_match_table = tsys01_of_match,
228227 },
229228 };
230229