hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/iio/light/st_uvis25_spi.c
....@@ -1,15 +1,15 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * STMicroelectronics uvis25 spi 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>
12
+#include <linux/mod_devicetable.h>
1313 #include <linux/spi/spi.h>
1414 #include <linux/slab.h>
1515 #include <linux/regmap.h>
....@@ -32,8 +32,8 @@
3232
3333 regmap = devm_regmap_init_spi(spi, &st_uvis25_spi_regmap_config);
3434 if (IS_ERR(regmap)) {
35
- dev_err(&spi->dev, "Failed to register spi regmap %d\n",
36
- (int)PTR_ERR(regmap));
35
+ dev_err(&spi->dev, "Failed to register spi regmap %ld\n",
36
+ PTR_ERR(regmap));
3737 return PTR_ERR(regmap);
3838 }
3939
....@@ -56,7 +56,7 @@
5656 .driver = {
5757 .name = "st_uvis25_spi",
5858 .pm = &st_uvis25_pm_ops,
59
- .of_match_table = of_match_ptr(st_uvis25_spi_of_match),
59
+ .of_match_table = st_uvis25_spi_of_match,
6060 },
6161 .probe = st_uvis25_spi_probe,
6262 .id_table = st_uvis25_spi_id_table,