Home
last modified time | relevance | path

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

/openbmc/qemu/hw/adc/
H A Dnpcm7xx_adc.c42 #define NPCM7XX_ADC_MAX_RESULT 1023 macro
60 result = input * (NPCM7XX_ADC_MAX_RESULT + 1) / ref; in npcm7xx_adc_convert()
61 if (result > NPCM7XX_ADC_MAX_RESULT) { in npcm7xx_adc_convert()
62 result = NPCM7XX_ADC_MAX_RESULT; in npcm7xx_adc_convert()