hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/iio/light/st_uvis25_i2c.c
....@@ -1,16 +1,15 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * STMicroelectronics uvis25 i2c driver
34 *
45 * Copyright 2017 STMicroelectronics Inc.
56 *
67 * Lorenzo Bianconi <lorenzo.bianconi83@gmail.com>
7
- *
8
- * Licensed under the GPL-2.
98 */
109
1110 #include <linux/kernel.h>
1211 #include <linux/module.h>
13
-#include <linux/acpi.h>
12
+#include <linux/mod_devicetable.h>
1413 #include <linux/i2c.h>
1514 #include <linux/slab.h>
1615 #include <linux/regmap.h>
....@@ -33,8 +32,8 @@
3332
3433 regmap = devm_regmap_init_i2c(client, &st_uvis25_i2c_regmap_config);
3534 if (IS_ERR(regmap)) {
36
- dev_err(&client->dev, "Failed to register i2c regmap %d\n",
37
- (int)PTR_ERR(regmap));
35
+ dev_err(&client->dev, "Failed to register i2c regmap %ld\n",
36
+ PTR_ERR(regmap));
3837 return PTR_ERR(regmap);
3938 }
4039
....@@ -57,7 +56,7 @@
5756 .driver = {
5857 .name = "st_uvis25_i2c",
5958 .pm = &st_uvis25_pm_ops,
60
- .of_match_table = of_match_ptr(st_uvis25_i2c_of_match),
59
+ .of_match_table = st_uvis25_i2c_of_match,
6160 },
6261 .probe = st_uvis25_i2c_probe,
6362 .id_table = st_uvis25_i2c_id_table,