.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * STMicroelectronics hts221 i2c driver |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright 2016 STMicroelectronics Inc. |
---|
5 | 6 | * |
---|
6 | 7 | * Lorenzo Bianconi <lorenzo.bianconi@st.com> |
---|
7 | | - * |
---|
8 | | - * Licensed under the GPL-2. |
---|
9 | 8 | */ |
---|
10 | 9 | |
---|
11 | 10 | #include <linux/kernel.h> |
---|
.. | .. |
---|
33 | 32 | |
---|
34 | 33 | regmap = devm_regmap_init_i2c(client, &hts221_i2c_regmap_config); |
---|
35 | 34 | 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)); |
---|
38 | 37 | return PTR_ERR(regmap); |
---|
39 | 38 | } |
---|
40 | 39 | |
---|
.. | .. |
---|
64 | 63 | .driver = { |
---|
65 | 64 | .name = "hts221_i2c", |
---|
66 | 65 | .pm = &hts221_pm_ops, |
---|
67 | | - .of_match_table = of_match_ptr(hts221_i2c_of_match), |
---|
| 66 | + .of_match_table = hts221_i2c_of_match, |
---|
68 | 67 | .acpi_match_table = ACPI_PTR(hts221_acpi_match), |
---|
69 | 68 | }, |
---|
70 | 69 | .probe = hts221_i2c_probe, |
---|