forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/iio/humidity/htu21.c
....@@ -1,11 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * htu21.c - Support for Measurement-Specialties
34 * htu21 temperature & humidity sensor
45 * and humidity part of MS8607 sensor
56 *
67 * Copyright (c) 2014 Measurement-Specialties
7
- *
8
- * Licensed under the GPL-2.
98 *
109 * (7-bit I2C slave address 0x40)
1110 *
....@@ -20,6 +19,7 @@
2019 #include <linux/kernel.h>
2120 #include <linux/stat.h>
2221 #include <linux/module.h>
22
+#include <linux/mod_devicetable.h>
2323 #include <linux/iio/iio.h>
2424 #include <linux/iio/sysfs.h>
2525
....@@ -205,7 +205,6 @@
205205
206206 indio_dev->info = &htu21_info;
207207 indio_dev->name = id->name;
208
- indio_dev->dev.parent = &client->dev;
209208 indio_dev->modes = INDIO_DIRECT_MODE;
210209
211210 if (id->driver_data == MS8607) {
....@@ -249,7 +248,7 @@
249248 .id_table = htu21_id,
250249 .driver = {
251250 .name = "htu21",
252
- .of_match_table = of_match_ptr(htu21_of_match),
251
+ .of_match_table = htu21_of_match,
253252 },
254253 };
255254