xref: /openbmc/linux/include/linux/iio/dac/ad5791.h (revision 293d5b43)
1 /*
2  * AD5791 SPI DAC driver
3  *
4  * Copyright 2011 Analog Devices Inc.
5  *
6  * Licensed under the GPL-2.
7  */
8 
9 #ifndef SPI_AD5791_H_
10 #define SPI_AD5791_H_
11 
12 /**
13  * struct ad5791_platform_data - platform specific information
14  * @vref_pos_mv:	Vdd Positive Analog Supply Volatge (mV)
15  * @vref_neg_mv:	Vdd Negative Analog Supply Volatge (mV)
16  * @use_rbuf_gain2:	ext. amplifier connected in gain of two configuration
17  */
18 
19 struct ad5791_platform_data {
20 	u16				vref_pos_mv;
21 	u16				vref_neg_mv;
22 	bool				use_rbuf_gain2;
23 };
24 
25 #endif /* SPI_AD5791_H_ */
26