forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/iio/humidity/hts221_i2c.c
....@@ -1,11 +1,10 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * STMicroelectronics hts221 i2c 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>
....@@ -33,8 +32,8 @@
3332
3433 regmap = devm_regmap_init_i2c(client, &hts221_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
....@@ -64,7 +63,7 @@
6463 .driver = {
6564 .name = "hts221_i2c",
6665 .pm = &hts221_pm_ops,
67
- .of_match_table = of_match_ptr(hts221_i2c_of_match),
66
+ .of_match_table = hts221_i2c_of_match,
6867 .acpi_match_table = ACPI_PTR(hts221_acpi_match),
6968 },
7069 .probe = hts221_i2c_probe,