ad2s1200.c (cbecf716ca618fd44feda6bd9a64a8179d031fc5) ad2s1200.c (37882314d3bdc2ae775ebb9fa8ed7a94cd1aad61)
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * ad2s1200.c simple support for the ADI Resolver to Digital Converters:
4 * AD2S1200/1205
5 *
6 * Copyright (c) 2018-2018 David Veenstra <davidjulianveenstra@gmail.com>
7 * Copyright (c) 2010-2010 Analog Devices Inc.
8 */

--- 27 unchanged lines hidden (view full) ---

36 * @rdvel: GPIO pin RDVEL.
37 * @rx: buffer for spi transfers.
38 */
39struct ad2s1200_state {
40 struct mutex lock;
41 struct spi_device *sdev;
42 struct gpio_desc *sample;
43 struct gpio_desc *rdvel;
1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * ad2s1200.c simple support for the ADI Resolver to Digital Converters:
4 * AD2S1200/1205
5 *
6 * Copyright (c) 2018-2018 David Veenstra <davidjulianveenstra@gmail.com>
7 * Copyright (c) 2010-2010 Analog Devices Inc.
8 */

--- 27 unchanged lines hidden (view full) ---

36 * @rdvel: GPIO pin RDVEL.
37 * @rx: buffer for spi transfers.
38 */
39struct ad2s1200_state {
40 struct mutex lock;
41 struct spi_device *sdev;
42 struct gpio_desc *sample;
43 struct gpio_desc *rdvel;
44 __be16 rx ____cacheline_aligned;
44 __be16 rx __aligned(IIO_DMA_MINALIGN);
45};
46
47static int ad2s1200_read_raw(struct iio_dev *indio_dev,
48 struct iio_chan_spec const *chan,
49 int *val,
50 int *val2,
51 long m)
52{

--- 154 unchanged lines hidden ---
45};
46
47static int ad2s1200_read_raw(struct iio_dev *indio_dev,
48 struct iio_chan_spec const *chan,
49 int *val,
50 int *val2,
51 long m)
52{

--- 154 unchanged lines hidden ---