Lines Matching refs:ticks
49 * sht21_temp_ticks_to_millicelsius() - convert raw temperature ticks to
51 * @ticks: temperature ticks value received from sensor
53 static inline int sht21_temp_ticks_to_millicelsius(int ticks)
55 ticks &= ~0x0003; /* clear status bits */
60 return ((21965 * ticks) >> 13) - 46850;
64 * sht21_rh_ticks_to_per_cent_mille() - convert raw humidity ticks to
66 * @ticks: humidity ticks value received from sensor
68 static inline int sht21_rh_ticks_to_per_cent_mille(int ticks)
70 ticks &= ~0x0003; /* clear status bits */
75 return ((15625 * ticks) >> 13) - 6000;