diff options
| author | Lars-Peter Clausen <lars@metafoo.de> | 2012-09-04 11:26:00 -0400 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2012-09-08 05:20:09 -0400 |
| commit | 7b123c85bbb3fadbd02b82d77d5aee0c399b0e06 (patch) | |
| tree | 30d9f5e48ca28b1544ba239f107f4e8fea8e18af /include/linux/platform_data | |
| parent | bf83238019cf091a32d3a8aeddf22282af992843 (diff) | |
staging:iio:adc: Add AD7791 driver
This patch adds support for the Analog Devices AD7787, AD7788, AD7789, AD7790
and AD7791 Sigma Delta Analog-to-Digital converters.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/ad7791.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/linux/platform_data/ad7791.h b/include/linux/platform_data/ad7791.h new file mode 100644 index 00000000000..f9e4db1b82a --- /dev/null +++ b/include/linux/platform_data/ad7791.h | |||
| @@ -0,0 +1,17 @@ | |||
| 1 | #ifndef __LINUX_PLATFORM_DATA_AD7791__ | ||
| 2 | #define __LINUX_PLATFORM_DATA_AD7791__ | ||
| 3 | |||
| 4 | /** | ||
| 5 | * struct ad7791_platform_data - AD7791 device platform data | ||
| 6 | * @buffered: If set to true configure the device for buffered input mode. | ||
| 7 | * @burnout_current: If set to true the 100mA burnout current is enabled. | ||
| 8 | * @unipolar: If set to true sample in unipolar mode, if set to false sample in | ||
| 9 | * bipolar mode. | ||
| 10 | */ | ||
| 11 | struct ad7791_platform_data { | ||
| 12 | bool buffered; | ||
| 13 | bool burnout_current; | ||
| 14 | bool unipolar; | ||
| 15 | }; | ||
| 16 | |||
| 17 | #endif | ||
