]> Pileus Git - ~andy/linux/blob - drivers/staging/iio/dac/ad5421.h
Merge branch 'for-linus-min' of git://git.kernel.org/pub/scm/linux/kernel/git/mason...
[~andy/linux] / drivers / staging / iio / dac / ad5421.h
1 #ifndef __IIO_DAC_AD5421_H__
2 #define __IIO_DAC_AD5421_H__
3
4 /*
5  * TODO: This file needs to go into include/linux/iio
6  */
7
8 /**
9  * enum ad5421_current_range - Current range the AD5421 is configured for.
10  * @AD5421_CURRENT_RANGE_4mA_20mA: 4 mA to 20 mA (RANGE1,0 pins = 00)
11  * @AD5421_CURRENT_RANGE_3mA8_21mA: 3.8 mA to 21 mA (RANGE1,0 pins = x1)
12  * @AD5421_CURRENT_RANGE_3mA2_24mA: 3.2 mA to 24 mA (RANGE1,0 pins = 10)
13  */
14
15 enum ad5421_current_range {
16         AD5421_CURRENT_RANGE_4mA_20mA,
17         AD5421_CURRENT_RANGE_3mA8_21mA,
18         AD5421_CURRENT_RANGE_3mA2_24mA,
19 };
20
21 /**
22  * struct ad5421_platform_data - AD5421 DAC driver platform data
23  * @external_vref: whether an external reference voltage is used or not
24  * @current_range: Current range the AD5421 is configured for
25  */
26
27 struct ad5421_platform_data {
28         bool external_vref;
29         enum ad5421_current_range current_range;
30 };
31
32 #endif