hc
2023-12-06 08f87f769b595151be1afeff53e144f543faa614
kernel/drivers/iio/pressure/ms5637.c
....@@ -1,10 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * ms5637.c - Support for Measurement-Specialties MS5637, MS5805
34 * MS5837 and MS8607 pressure & temperature sensor
45 *
56 * Copyright (c) 2015 Measurement-Specialties
6
- *
7
- * Licensed under the GPL-2.
87 *
98 * (7-bit I2C slave address 0x76)
109 *
....@@ -23,6 +22,7 @@
2322 #include <linux/kernel.h>
2423 #include <linux/stat.h>
2524 #include <linux/module.h>
25
+#include <linux/mod_devicetable.h>
2626 #include <linux/i2c.h>
2727 #include <linux/iio/iio.h>
2828 #include <linux/iio/sysfs.h>
....@@ -153,7 +153,6 @@
153153
154154 indio_dev->info = &ms5637_info;
155155 indio_dev->name = id->name;
156
- indio_dev->dev.parent = &client->dev;
157156 indio_dev->modes = INDIO_DIRECT_MODE;
158157 indio_dev->channels = ms5637_channels;
159158 indio_dev->num_channels = ARRAY_SIZE(ms5637_channels);
....@@ -194,7 +193,7 @@
194193 .id_table = ms5637_id,
195194 .driver = {
196195 .name = "ms5637",
197
- .of_match_table = of_match_ptr(ms5637_of_match),
196
+ .of_match_table = ms5637_of_match,
198197 },
199198 };
200199