| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * AD5760, AD5780, AD5781, AD5790, AD5791 Voltage Output Digital to Analog |
|---|
| 3 | 4 | * Converter |
|---|
| 4 | 5 | * |
|---|
| 5 | 6 | * Copyright 2011 Analog Devices Inc. |
|---|
| 6 | | - * |
|---|
| 7 | | - * Licensed under the GPL-2. |
|---|
| 8 | 7 | */ |
|---|
| 9 | 8 | |
|---|
| 10 | 9 | #include <linux/interrupt.h> |
|---|
| .. | .. |
|---|
| 77 | 76 | * @chip_info: chip model specific constants |
|---|
| 78 | 77 | * @vref_mv: actual reference voltage used |
|---|
| 79 | 78 | * @vref_neg_mv: voltage of the negative supply |
|---|
| 80 | | - * @pwr_down_mode current power down mode |
|---|
| 79 | + * @ctrl: control regster cache |
|---|
| 80 | + * @pwr_down_mode: current power down mode |
|---|
| 81 | + * @pwr_down: true if device is powered down |
|---|
| 82 | + * @data: spi transfer buffers |
|---|
| 81 | 83 | */ |
|---|
| 82 | | - |
|---|
| 83 | 84 | struct ad5791_state { |
|---|
| 84 | 85 | struct spi_device *spi; |
|---|
| 85 | 86 | struct regulator *reg_vdd; |
|---|
| .. | .. |
|---|
| 96 | 97 | u8 d8[4]; |
|---|
| 97 | 98 | } data[3] ____cacheline_aligned; |
|---|
| 98 | 99 | }; |
|---|
| 99 | | - |
|---|
| 100 | | -/** |
|---|
| 101 | | - * ad5791_supported_device_ids: |
|---|
| 102 | | - */ |
|---|
| 103 | 100 | |
|---|
| 104 | 101 | enum ad5791_supported_device_ids { |
|---|
| 105 | 102 | ID_AD5760, |
|---|
| .. | .. |
|---|
| 410 | 407 | goto error_disable_reg_neg; |
|---|
| 411 | 408 | |
|---|
| 412 | 409 | spi_set_drvdata(spi, indio_dev); |
|---|
| 413 | | - indio_dev->dev.parent = &spi->dev; |
|---|
| 414 | 410 | indio_dev->info = &ad5791_info; |
|---|
| 415 | 411 | indio_dev->modes = INDIO_DIRECT_MODE; |
|---|
| 416 | 412 | indio_dev->channels |
|---|
| .. | .. |
|---|
| 467 | 463 | }; |
|---|
| 468 | 464 | module_spi_driver(ad5791_driver); |
|---|
| 469 | 465 | |
|---|
| 470 | | -MODULE_AUTHOR("Michael Hennerich <hennerich@blackfin.uclinux.org>"); |
|---|
| 466 | +MODULE_AUTHOR("Michael Hennerich <michael.hennerich@analog.com>"); |
|---|
| 471 | 467 | MODULE_DESCRIPTION("Analog Devices AD5760/AD5780/AD5781/AD5790/AD5791 DAC"); |
|---|
| 472 | 468 | MODULE_LICENSE("GPL v2"); |
|---|