| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * ad2s1200.c simple support for the ADI Resolver to Digital Converters: |
|---|
| 3 | 4 | * AD2S1200/1205 |
|---|
| 4 | 5 | * |
|---|
| 5 | 6 | * Copyright (c) 2018-2018 David Veenstra <davidjulianveenstra@gmail.com> |
|---|
| 6 | 7 | * Copyright (c) 2010-2010 Analog Devices Inc. |
|---|
| 7 | | - * |
|---|
| 8 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 9 | | - * it under the terms of the GNU General Public License version 2 as |
|---|
| 10 | | - * published by the Free Software Foundation. |
|---|
| 11 | 8 | */ |
|---|
| 12 | 9 | |
|---|
| 13 | 10 | #include <linux/bitops.h> |
|---|
| 14 | 11 | #include <linux/delay.h> |
|---|
| 15 | 12 | #include <linux/device.h> |
|---|
| 16 | | -#include <linux/gpio.h> |
|---|
| 17 | 13 | #include <linux/gpio/consumer.h> |
|---|
| 18 | 14 | #include <linux/module.h> |
|---|
| 15 | +#include <linux/mod_devicetable.h> |
|---|
| 19 | 16 | #include <linux/mutex.h> |
|---|
| 20 | 17 | #include <linux/spi/spi.h> |
|---|
| 21 | 18 | #include <linux/sysfs.h> |
|---|
| .. | .. |
|---|
| 161 | 158 | return PTR_ERR(st->rdvel); |
|---|
| 162 | 159 | } |
|---|
| 163 | 160 | |
|---|
| 164 | | - indio_dev->dev.parent = &spi->dev; |
|---|
| 165 | 161 | indio_dev->info = &ad2s1200_info; |
|---|
| 166 | 162 | indio_dev->modes = INDIO_DIRECT_MODE; |
|---|
| 167 | 163 | indio_dev->channels = ad2s1200_channels; |
|---|
| .. | .. |
|---|
| 197 | 193 | static struct spi_driver ad2s1200_driver = { |
|---|
| 198 | 194 | .driver = { |
|---|
| 199 | 195 | .name = DRV_NAME, |
|---|
| 200 | | - .of_match_table = of_match_ptr(ad2s1200_of_match), |
|---|
| 196 | + .of_match_table = ad2s1200_of_match, |
|---|
| 201 | 197 | }, |
|---|
| 202 | 198 | .probe = ad2s1200_probe, |
|---|
| 203 | 199 | .id_table = ad2s1200_id, |
|---|