| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * AD7298 SPI ADC driver |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright 2011 Analog Devices Inc. |
|---|
| 5 | | - * |
|---|
| 6 | | - * Licensed under the GPL-2. |
|---|
| 7 | 6 | */ |
|---|
| 8 | 7 | |
|---|
| 9 | 8 | #include <linux/device.h> |
|---|
| .. | .. |
|---|
| 99 | 98 | IIO_CHAN_SOFT_TIMESTAMP(8), |
|---|
| 100 | 99 | }; |
|---|
| 101 | 100 | |
|---|
| 102 | | -/** |
|---|
| 101 | +/* |
|---|
| 103 | 102 | * ad7298_update_scan_mode() setup the spi transfer buffer for the new scan mask |
|---|
| 104 | | - **/ |
|---|
| 103 | + */ |
|---|
| 105 | 104 | static int ad7298_update_scan_mode(struct iio_dev *indio_dev, |
|---|
| 106 | 105 | const unsigned long *active_scan_mask) |
|---|
| 107 | 106 | { |
|---|
| .. | .. |
|---|
| 145 | 144 | return 0; |
|---|
| 146 | 145 | } |
|---|
| 147 | 146 | |
|---|
| 148 | | -/** |
|---|
| 147 | +/* |
|---|
| 149 | 148 | * ad7298_trigger_handler() bh of trigger launched polling to ring buffer |
|---|
| 150 | 149 | * |
|---|
| 151 | 150 | * Currently there is no option in this driver to disable the saving of |
|---|
| 152 | 151 | * timestamps within the ring. |
|---|
| 153 | | - **/ |
|---|
| 152 | + */ |
|---|
| 154 | 153 | static irqreturn_t ad7298_trigger_handler(int irq, void *p) |
|---|
| 155 | 154 | { |
|---|
| 156 | 155 | struct iio_poll_func *pf = p; |
|---|
| .. | .. |
|---|
| 313 | 312 | st->spi = spi; |
|---|
| 314 | 313 | |
|---|
| 315 | 314 | indio_dev->name = spi_get_device_id(spi)->name; |
|---|
| 316 | | - indio_dev->dev.parent = &spi->dev; |
|---|
| 317 | | - indio_dev->dev.of_node = spi->dev.of_node; |
|---|
| 318 | 315 | indio_dev->modes = INDIO_DIRECT_MODE; |
|---|
| 319 | 316 | indio_dev->channels = ad7298_channels; |
|---|
| 320 | 317 | indio_dev->num_channels = ARRAY_SIZE(ad7298_channels); |
|---|
| .. | .. |
|---|
| 385 | 382 | }; |
|---|
| 386 | 383 | module_spi_driver(ad7298_driver); |
|---|
| 387 | 384 | |
|---|
| 388 | | -MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); |
|---|
| 385 | +MODULE_AUTHOR("Michael Hennerich <michael.hennerich@analog.com>"); |
|---|
| 389 | 386 | MODULE_DESCRIPTION("Analog Devices AD7298 ADC"); |
|---|
| 390 | 387 | MODULE_LICENSE("GPL v2"); |
|---|