Home
last modified time | relevance | path

Searched refs:AD74115_ADC_CODE_MAX (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/iio/addac/
H A Dad74115.c87 #define AD74115_ADC_CODE_MAX ((int)GENMASK(15, 0)) macro
88 #define AD74115_ADC_CODE_HALF (AD74115_ADC_CODE_MAX / 2)
885 if (code == AD74115_ADC_CODE_MAX) in ad74115_adc_code_to_resistance()
889 *val2 = AD74115_ADC_CODE_MAX - code; in ad74115_adc_code_to_resistance()
1078 *val2 *= AD74115_ADC_CODE_MAX; in ad74115_get_adc_resistance_scale()
1098 *val2 = AD74115_ADC_CODE_MAX; in ad74115_get_adc_scale()
1127 v *= AD74115_ADC_CODE_MAX; in ad74115_get_adc_resistance_offset()
1154 *val = -AD74115_ADC_CODE_MAX; in ad74115_get_adc_offset()