Home
last modified time | relevance | path

Searched refs:adc_code (Results 1 – 3 of 3) sorted by relevance

/drivers/thermal/qcom/
Dtsens-common.c83 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()
Dtsens-8960.c245 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/
Dqcom-spmi-vadc.c472 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()