hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/drivers/iio/pressure/zpa2326_i2c.c
....@@ -1,24 +1,16 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Murata ZPA2326 I2C pressure and temperature sensor driver
34 *
45 * Copyright (c) 2016 Parrot S.A.
56 *
67 * Author: Gregor Boirie <gregor.boirie@parrot.com>
7
- *
8
- * This program is free software; you can redistribute it and/or modify it
9
- * under the terms of the GNU General Public License version 2 as published by
10
- * the Free Software Foundation.
11
- *
12
- * This program is distributed in the hope that it will be useful, but WITHOUT
13
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15
- * more details.
168 */
179
1810 #include <linux/module.h>
1911 #include <linux/regmap.h>
2012 #include <linux/i2c.h>
21
-#include <linux/of_device.h>
13
+#include <linux/mod_devicetable.h>
2214 #include "zpa2326.h"
2315
2416 /*
....@@ -74,18 +66,16 @@
7466 };
7567 MODULE_DEVICE_TABLE(i2c, zpa2326_i2c_ids);
7668
77
-#if defined(CONFIG_OF)
7869 static const struct of_device_id zpa2326_i2c_matches[] = {
7970 { .compatible = "murata,zpa2326" },
8071 { }
8172 };
8273 MODULE_DEVICE_TABLE(of, zpa2326_i2c_matches);
83
-#endif
8474
8575 static struct i2c_driver zpa2326_i2c_driver = {
8676 .driver = {
8777 .name = "zpa2326-i2c",
88
- .of_match_table = of_match_ptr(zpa2326_i2c_matches),
78
+ .of_match_table = zpa2326_i2c_matches,
8979 .pm = ZPA2326_PM_OPS,
9080 },
9181 .probe = zpa2326_probe_i2c,