forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/drivers/iio/humidity/hts221_spi.c
....@@ -1,11 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * STMicroelectronics hts221 spi driver
34 *
45 * Copyright 2016 STMicroelectronics Inc.
56 *
67 * Lorenzo Bianconi <lorenzo.bianconi@st.com>
7
- *
8
- * Licensed under the GPL-2.
98 */
109
1110 #include <linux/kernel.h>
....@@ -32,8 +31,8 @@
3231
3332 regmap = devm_regmap_init_spi(spi, &hts221_spi_regmap_config);
3433 if (IS_ERR(regmap)) {
35
- dev_err(&spi->dev, "Failed to register spi regmap %d\n",
36
- (int)PTR_ERR(regmap));
34
+ dev_err(&spi->dev, "Failed to register spi regmap %ld\n",
35
+ PTR_ERR(regmap));
3736 return PTR_ERR(regmap);
3837 }
3938
....@@ -57,7 +56,7 @@
5756 .driver = {
5857 .name = "hts221_spi",
5958 .pm = &hts221_pm_ops,
60
- .of_match_table = of_match_ptr(hts221_spi_of_match),
59
+ .of_match_table = hts221_spi_of_match,
6160 },
6261 .probe = hts221_spi_probe,
6362 .id_table = hts221_spi_id_table,