Lines Matching refs:CALIB_SCALE
109 #define CALIB_SCALE 1000 macro
208 gpadc->cal_data[ADC_INPUT_VMAIN].offset) / CALIB_SCALE; in ab8500_gpadc_ad_to_voltage()
226 gpadc->cal_data[ADC_INPUT_BTEMP].offset) / CALIB_SCALE; in ab8500_gpadc_ad_to_voltage()
240 gpadc->cal_data[ADC_INPUT_VBAT].offset) / CALIB_SCALE; in ab8500_gpadc_ad_to_voltage()
738 gpadc->cal_data[ADC_INPUT_VMAIN].gain = CALIB_SCALE * in ab8500_gpadc_read_calibration_data()
740 gpadc->cal_data[ADC_INPUT_VMAIN].offset = CALIB_SCALE * in ab8500_gpadc_read_calibration_data()
741 19500 - (CALIB_SCALE * (19500 - 315) / in ab8500_gpadc_read_calibration_data()
812 gpadc->cal_data[ADC_INPUT_VMAIN].gain = CALIB_SCALE * in ab8500_gpadc_read_calibration_data()
815 gpadc->cal_data[ADC_INPUT_VMAIN].offset = CALIB_SCALE * in ab8500_gpadc_read_calibration_data()
816 19500 - (CALIB_SCALE * (19500 - 315) / in ab8500_gpadc_read_calibration_data()
833 CALIB_SCALE * (1300 - 21) / (btemp_high - btemp_low); in ab8500_gpadc_read_calibration_data()
834 gpadc->cal_data[ADC_INPUT_BTEMP].offset = CALIB_SCALE * 1300 - in ab8500_gpadc_read_calibration_data()
835 (CALIB_SCALE * (1300 - 21) / (btemp_high - btemp_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()
852 (CALIB_SCALE * (4700 - 2380) / in ab8500_gpadc_read_calibration_data()