| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * AD5592R Digital <-> Analog converters driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright 2015-2016 Analog Devices Inc. |
|---|
| 5 | 6 | * Author: Paul Cercueil <paul.cercueil@analog.com> |
|---|
| 6 | | - * |
|---|
| 7 | | - * Licensed under the GPL-2. |
|---|
| 8 | 7 | */ |
|---|
| 9 | 8 | |
|---|
| 10 | 9 | #include "ad5592r-base.h" |
|---|
| 11 | 10 | |
|---|
| 12 | 11 | #include <linux/bitops.h> |
|---|
| 13 | 12 | #include <linux/module.h> |
|---|
| 14 | | -#include <linux/of.h> |
|---|
| 13 | +#include <linux/mod_devicetable.h> |
|---|
| 15 | 14 | #include <linux/spi/spi.h> |
|---|
| 16 | | -#include <linux/acpi.h> |
|---|
| 17 | 15 | |
|---|
| 18 | 16 | #define AD5592R_GPIO_READBACK_EN BIT(10) |
|---|
| 19 | 17 | #define AD5592R_LDAC_READBACK_EN BIT(6) |
|---|
| .. | .. |
|---|
| 99 | 97 | return 0; |
|---|
| 100 | 98 | } |
|---|
| 101 | 99 | |
|---|
| 102 | | -static int ad5593r_gpio_read(struct ad5592r_state *st, u8 *value) |
|---|
| 100 | +static int ad5592r_gpio_read(struct ad5592r_state *st, u8 *value) |
|---|
| 103 | 101 | { |
|---|
| 104 | 102 | int ret; |
|---|
| 105 | 103 | |
|---|
| .. | .. |
|---|
| 122 | 120 | .read_adc = ad5592r_read_adc, |
|---|
| 123 | 121 | .reg_write = ad5592r_reg_write, |
|---|
| 124 | 122 | .reg_read = ad5592r_reg_read, |
|---|
| 125 | | - .gpio_read = ad5593r_gpio_read, |
|---|
| 123 | + .gpio_read = ad5592r_gpio_read, |
|---|
| 126 | 124 | }; |
|---|
| 127 | 125 | |
|---|
| 128 | 126 | static int ad5592r_spi_probe(struct spi_device *spi) |
|---|
| .. | .. |
|---|
| 158 | 156 | static struct spi_driver ad5592r_spi_driver = { |
|---|
| 159 | 157 | .driver = { |
|---|
| 160 | 158 | .name = "ad5592r", |
|---|
| 161 | | - .of_match_table = of_match_ptr(ad5592r_of_match), |
|---|
| 162 | | - .acpi_match_table = ACPI_PTR(ad5592r_acpi_match), |
|---|
| 159 | + .of_match_table = ad5592r_of_match, |
|---|
| 160 | + .acpi_match_table = ad5592r_acpi_match, |
|---|
| 163 | 161 | }, |
|---|
| 164 | 162 | .probe = ad5592r_spi_probe, |
|---|
| 165 | 163 | .remove = ad5592r_spi_remove, |
|---|