.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * STMicroelectronics uvis25 i2c driver |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright 2017 STMicroelectronics Inc. |
---|
5 | 6 | * |
---|
6 | 7 | * Lorenzo Bianconi <lorenzo.bianconi83@gmail.com> |
---|
7 | | - * |
---|
8 | | - * Licensed under the GPL-2. |
---|
9 | 8 | */ |
---|
10 | 9 | |
---|
11 | 10 | #include <linux/kernel.h> |
---|
12 | 11 | #include <linux/module.h> |
---|
13 | | -#include <linux/acpi.h> |
---|
| 12 | +#include <linux/mod_devicetable.h> |
---|
14 | 13 | #include <linux/i2c.h> |
---|
15 | 14 | #include <linux/slab.h> |
---|
16 | 15 | #include <linux/regmap.h> |
---|
.. | .. |
---|
33 | 32 | |
---|
34 | 33 | regmap = devm_regmap_init_i2c(client, &st_uvis25_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 | |
---|
.. | .. |
---|
57 | 56 | .driver = { |
---|
58 | 57 | .name = "st_uvis25_i2c", |
---|
59 | 58 | .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, |
---|
61 | 60 | }, |
---|
62 | 61 | .probe = st_uvis25_i2c_probe, |
---|
63 | 62 | .id_table = st_uvis25_i2c_id_table, |
---|