Searched refs:CALIB_SCALE (Results 1 – 1 of 1) sorted by relevance
109 #define CALIB_SCALE 1000 macro208 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()[all …]