Home
last modified time | relevance | path

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

/drivers/hwmon/
Dsht21.c38 struct sht21 { struct
87 struct sht21 *sht21 = dev_get_drvdata(dev); in sht21_update_measurements() local
88 struct i2c_client *client = sht21->client; in sht21_update_measurements()
90 mutex_lock(&sht21->lock); in sht21_update_measurements()
96 if (time_after(jiffies, sht21->last_update + HZ / 2) || !sht21->valid) { in sht21_update_measurements()
101 sht21->temperature = sht21_temp_ticks_to_millicelsius(ret); in sht21_update_measurements()
106 sht21->humidity = sht21_rh_ticks_to_per_cent_mille(ret); in sht21_update_measurements()
107 sht21->last_update = jiffies; in sht21_update_measurements()
108 sht21->valid = 1; in sht21_update_measurements()
111 mutex_unlock(&sht21->lock); in sht21_update_measurements()
[all …]
DMakefile152 obj-$(CONFIG_SENSORS_SHT21) += sht21.o
DKconfig1368 will be called sht21.