Searched refs:ADC_INPUT_VBAT (Results 1 – 1 of 1) sorted by relevance
124 ADC_INPUT_VBAT, enumerator232 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()[all …]