| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * STMicroelectronics uvis25 spi 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> |
|---|
| 12 | +#include <linux/mod_devicetable.h> |
|---|
| 13 | 13 | #include <linux/spi/spi.h> |
|---|
| 14 | 14 | #include <linux/slab.h> |
|---|
| 15 | 15 | #include <linux/regmap.h> |
|---|
| .. | .. |
|---|
| 32 | 32 | |
|---|
| 33 | 33 | regmap = devm_regmap_init_spi(spi, &st_uvis25_spi_regmap_config); |
|---|
| 34 | 34 | 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)); |
|---|
| 37 | 37 | return PTR_ERR(regmap); |
|---|
| 38 | 38 | } |
|---|
| 39 | 39 | |
|---|
| .. | .. |
|---|
| 56 | 56 | .driver = { |
|---|
| 57 | 57 | .name = "st_uvis25_spi", |
|---|
| 58 | 58 | .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, |
|---|
| 60 | 60 | }, |
|---|
| 61 | 61 | .probe = st_uvis25_spi_probe, |
|---|
| 62 | 62 | .id_table = st_uvis25_spi_id_table, |
|---|