diff options
| author | Lars-Peter Clausen <lars@metafoo.de> | 2013-06-11 12:56:00 -0400 |
|---|---|---|
| committer | Jonathan Cameron <jic23@kernel.org> | 2013-06-11 15:25:58 -0400 |
| commit | f83478240e742efe1103110c28d48cc2b4dcee5c (patch) | |
| tree | 0a44961fa6e7c54e2d08610a2137d2d04e0ba21d /include/linux/platform_data | |
| parent | e764df67963940b4123325710536a9471d1e24ae (diff) | |
iio:dac: Add support for the AD7303
This patch adds support for the AD7303. The AD7303 is a simple 2 channel 8 bit
DAC with an SPI interface.
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/ad7303.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/linux/platform_data/ad7303.h b/include/linux/platform_data/ad7303.h new file mode 100644 index 000000000000..de6a7a6b4bbf --- /dev/null +++ b/include/linux/platform_data/ad7303.h | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | /* | ||
| 2 | * Analog Devices AD7303 DAC driver | ||
| 3 | * | ||
| 4 | * Copyright 2013 Analog Devices Inc. | ||
| 5 | * | ||
| 6 | * Licensed under the GPL-2. | ||
| 7 | */ | ||
| 8 | |||
| 9 | #ifndef __IIO_ADC_AD7303_H__ | ||
| 10 | #define __IIO_ADC_AD7303_H__ | ||
| 11 | |||
| 12 | /** | ||
| 13 | * struct ad7303_platform_data - AD7303 platform data | ||
| 14 | * @use_external_ref: If set to true use an external voltage reference connected | ||
| 15 | * to the REF pin, otherwise use the internal reference derived from Vdd. | ||
| 16 | */ | ||
| 17 | struct ad7303_platform_data { | ||
| 18 | bool use_external_ref; | ||
| 19 | }; | ||
| 20 | |||
| 21 | #endif | ||
