Home
last modified time | relevance | path

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

/openbmc/linux/drivers/iio/chemical/
H A Dsgp40.c168 struct sgp40_tg_result tgres; in sgp40_measure_resistance_raw() local
191 ret = i2c_master_recv(client, (u8 *)&tgres, sizeof(tgres)); in sgp40_measure_resistance_raw()
194 if (ret != sizeof(tgres)) { in sgp40_measure_resistance_raw()
195 dev_warn(data->dev, "i2c_master_recv ret: %d sizeof: %zu\n", ret, sizeof(tgres)); in sgp40_measure_resistance_raw()
199 crc = crc8(sgp40_crc8_table, (u8 *)&tgres.res_ticks, 2, SGP40_CRC8_INIT); in sgp40_measure_resistance_raw()
200 if (crc != tgres.res_crc) { in sgp40_measure_resistance_raw()
205 *resistance_raw = be16_to_cpu(tgres.res_ticks); in sgp40_measure_resistance_raw()