Searched refs:fladc (Results 1 – 1 of 1) sorted by relevance
58 bool ua_src, u8 fladc) in max_contaminant_adc_to_mv() argument64 return FLADC_1uA_CC_OFFSET_MV + (fladc * FLADC_1uA_LSB_MV); in max_contaminant_adc_to_mv()66 return FLADC_CC_HIGH_RANGE_OFFSET_MV + (fladc * FLADC_CC_HIGH_RANGE_LSB_MV); in max_contaminant_adc_to_mv()68 return FLADC_CC_LOW_RANGE_OFFSET_MV + (fladc * FLADC_CC_LOW_RANGE_LSB_MV); in max_contaminant_adc_to_mv()79 u8 fladc; in max_contaminant_read_adc_mv() local94 ret = max_tcpci_read8(chip, TCPC_VENDOR_FLADC_STATUS, &fladc); in max_contaminant_read_adc_mv()108 return max_contaminant_adc_to_mv(chip, channel, ua_src, fladc); in max_contaminant_read_adc_mv()110 return fladc; in max_contaminant_read_adc_mv()