Searched refs:adc_code (Results 1 – 3 of 3) sorted by relevance
/drivers/thermal/qcom/ |
D | tsens-common.c | 83 static inline int code_to_degc(u32 adc_code, const struct tsens_sensor *s) in code_to_degc() argument 87 num = (adc_code * SLOPE_FACTOR) - s->offset; in code_to_degc()
|
D | tsens-8960.c | 245 static inline int code_to_mdegC(u32 adc_code, const struct tsens_sensor *s) in code_to_mdegC() argument 252 return adc_code * slope + offset; in code_to_mdegC()
|
/drivers/iio/adc/ |
D | qcom-spmi-vadc.c | 472 const struct vadc_channel_prop *prop, u16 adc_code) in vadc_calibrate() argument 477 voltage = adc_code - vadc->graph[prop->calibration].gnd; in vadc_calibrate() 545 u16 adc_code; in vadc_read_raw() local 551 ret = vadc_do_conversion(vadc, prop, &adc_code); in vadc_read_raw() 555 *val = vadc_calibrate(vadc, prop, adc_code); in vadc_read_raw() 563 ret = vadc_do_conversion(vadc, prop, &adc_code); in vadc_read_raw() 567 *val = vadc_calibrate(vadc, prop, adc_code); in vadc_read_raw()
|