| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * IIO DAC driver for Analog Devices AD8801 DAC |
|---|
| 3 | 4 | * |
|---|
| 4 | 5 | * Copyright (C) 2016 Gwenhael Goavec-Merou |
|---|
| 5 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 6 | | - * it under the terms of the GNU General Public License, version 2, as |
|---|
| 7 | | - * published by the Free Software Foundation. |
|---|
| 8 | | - * |
|---|
| 9 | | - * This program is distributed in the hope that it will be useful, but |
|---|
| 10 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 11 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|---|
| 12 | | - * General Public License for more details. |
|---|
| 13 | | - * |
|---|
| 14 | 6 | */ |
|---|
| 15 | 7 | |
|---|
| 16 | 8 | #include <linux/iio/iio.h> |
|---|
| .. | .. |
|---|
| 179 | 171 | } |
|---|
| 180 | 172 | |
|---|
| 181 | 173 | spi_set_drvdata(spi, indio_dev); |
|---|
| 182 | | - indio_dev->dev.parent = &spi->dev; |
|---|
| 183 | 174 | indio_dev->info = &ad8801_info; |
|---|
| 184 | 175 | indio_dev->modes = INDIO_DIRECT_MODE; |
|---|
| 185 | 176 | indio_dev->channels = ad8801_channels; |
|---|