1 /* SPDX-License-Identifier: GPL-2.0 */ 2 #ifndef __IIO_DAC_AD5421_H__ 3 #define __IIO_DAC_AD5421_H__ 4 5 /** 6 * enum ad5421_current_range - Current range the AD5421 is configured for. 7 * @AD5421_CURRENT_RANGE_4mA_20mA: 4 mA to 20 mA (RANGE1,0 pins = 00) 8 * @AD5421_CURRENT_RANGE_3mA8_21mA: 3.8 mA to 21 mA (RANGE1,0 pins = x1) 9 * @AD5421_CURRENT_RANGE_3mA2_24mA: 3.2 mA to 24 mA (RANGE1,0 pins = 10) 10 */ 11 12 enum ad5421_current_range { 13 AD5421_CURRENT_RANGE_4mA_20mA, 14 AD5421_CURRENT_RANGE_3mA8_21mA, 15 AD5421_CURRENT_RANGE_3mA2_24mA, 16 }; 17 18 /** 19 * struct ad5421_platform_data - AD5421 DAC driver platform data 20 * @external_vref: whether an external reference voltage is used or not 21 * @current_range: Current range the AD5421 is configured for 22 */ 23 24 struct ad5421_platform_data { 25 bool external_vref; 26 enum ad5421_current_range current_range; 27 }; 28 29 #endif 30