forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/drivers/iio/temperature/tmp007.c
....@@ -1,11 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * tmp007.c - Support for TI TMP007 IR thermopile sensor with integrated math engine
34 *
45 * Copyright (c) 2017 Manivannan Sadhasivam <manivannanece23@gmail.com>
5
- *
6
- * This file is subject to the terms and conditions of version 2 of
7
- * the GNU General Public License. See the file COPYING in the main
8
- * directory of this archive for more details.
96 *
107 * Driver for the Texas Instruments I2C 16-bit IR thermopile sensor
118 *
....@@ -15,7 +12,6 @@
1512 * 1. This driver assumes that the sensor has been calibrated beforehand
1613 * 2. Limit threshold events are enabled at the start
1714 * 3. Operating mode: INT
18
- *
1915 */
2016
2117 #include <linux/err.h>
....@@ -24,7 +20,7 @@
2420 #include <linux/module.h>
2521 #include <linux/pm.h>
2622 #include <linux/bitops.h>
27
-#include <linux/of.h>
23
+#include <linux/mod_devicetable.h>
2824 #include <linux/irq.h>
2925 #include <linux/interrupt.h>
3026
....@@ -467,7 +463,6 @@
467463 data->client = client;
468464 mutex_init(&data->lock);
469465
470
- indio_dev->dev.parent = &client->dev;
471466 indio_dev->name = "tmp007";
472467 indio_dev->modes = INDIO_DIRECT_MODE;
473468 indio_dev->info = &tmp007_info;
....@@ -583,7 +578,7 @@
583578 static struct i2c_driver tmp007_driver = {
584579 .driver = {
585580 .name = "tmp007",
586
- .of_match_table = of_match_ptr(tmp007_of_match),
581
+ .of_match_table = tmp007_of_match,
587582 .pm = &tmp007_pm_ops,
588583 },
589584 .probe = tmp007_probe,