Searched refs:ticks16 (Results 1 – 1 of 1) sorted by relevance
170 u16 ticks16; in sgp40_measure_resistance_raw() local178 ticks16 = (u16)clamp(ticks, 0u, 65535u); /* clamp between 0 .. 100 %rH */ in sgp40_measure_resistance_raw()179 tg.rht_ticks = cpu_to_be16(ticks16); in sgp40_measure_resistance_raw()183 ticks16 = (u16)clamp(ticks, 0u, 65535u); /* clamp between -45 .. +130 °C */ in sgp40_measure_resistance_raw()184 tg.temp_ticks = cpu_to_be16(ticks16); in sgp40_measure_resistance_raw()