Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/iio/chemical/
Dsgp40.c145 static int sgp40_calc_voc(struct sgp40_data *data, u16 resistance_raw, int *voc) in sgp40_calc_voc() argument
152 x = ((int)resistance_raw - data->res_calibbias) * 106; in sgp40_calc_voc()
160 resistance_raw, data->res_calibbias, x, exp, *voc); in sgp40_calc_voc()
165 static int sgp40_measure_resistance_raw(struct sgp40_data *data, u16 *resistance_raw) in sgp40_measure_resistance_raw() argument
210 *resistance_raw = be16_to_cpu(tgres.res_ticks); in sgp40_measure_resistance_raw()
221 u16 resistance_raw; in sgp40_read_raw() local
227 ret = sgp40_measure_resistance_raw(data, &resistance_raw); in sgp40_read_raw()
231 *val = resistance_raw; in sgp40_read_raw()
247 ret = sgp40_measure_resistance_raw(data, &resistance_raw); in sgp40_read_raw()
251 ret = sgp40_calc_voc(data, resistance_raw, &voc); in sgp40_read_raw()