Lines Matching refs:ADC_INPUT_VBAT
124 ADC_INPUT_VBAT, enumerator
232 if (!gpadc->cal_data[ADC_INPUT_VBAT].gain) { in ab8500_gpadc_ad_to_voltage()
239 res = (int) (ad_value * gpadc->cal_data[ADC_INPUT_VBAT].gain + in ab8500_gpadc_ad_to_voltage()
240 gpadc->cal_data[ADC_INPUT_VBAT].offset) / CALIB_SCALE; in ab8500_gpadc_ad_to_voltage()
846 gpadc->cal_data[ADC_INPUT_VBAT].otp_calib_hi = (u16)vbat_high; in ab8500_gpadc_read_calibration_data()
847 gpadc->cal_data[ADC_INPUT_VBAT].otp_calib_lo = (u16)vbat_low; in ab8500_gpadc_read_calibration_data()
849 gpadc->cal_data[ADC_INPUT_VBAT].gain = CALIB_SCALE * in ab8500_gpadc_read_calibration_data()
851 gpadc->cal_data[ADC_INPUT_VBAT].offset = CALIB_SCALE * 4700 - in ab8500_gpadc_read_calibration_data()
855 gpadc->cal_data[ADC_INPUT_VBAT].gain = 0; in ab8500_gpadc_read_calibration_data()
867 gpadc->cal_data[ADC_INPUT_VBAT].gain, in ab8500_gpadc_read_calibration_data()
868 gpadc->cal_data[ADC_INPUT_VBAT].offset); in ab8500_gpadc_read_calibration_data()
1071 *vbat_l = gpadc->cal_data[ADC_INPUT_VBAT].otp_calib_lo; in ab8540_gpadc_get_otp()
1072 *vbat_h = gpadc->cal_data[ADC_INPUT_VBAT].otp_calib_hi; in ab8540_gpadc_get_otp()