Home
last modified time | relevance | path

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

/linux-3.4.99/drivers/hwmon/
Dsht21.c46 struct sht21 { struct
94 struct sht21 *sht21 = i2c_get_clientdata(client); in sht21_update_measurements() local
96 mutex_lock(&sht21->lock); in sht21_update_measurements()
102 if (time_after(jiffies, sht21->last_update + HZ / 2) || !sht21->valid) { in sht21_update_measurements()
107 sht21->temperature = sht21_temp_ticks_to_millicelsius(ret); in sht21_update_measurements()
112 sht21->humidity = sht21_rh_ticks_to_per_cent_mille(ret); in sht21_update_measurements()
113 sht21->last_update = jiffies; in sht21_update_measurements()
114 sht21->valid = 1; in sht21_update_measurements()
117 mutex_unlock(&sht21->lock); in sht21_update_measurements()
136 struct sht21 *sht21 = i2c_get_clientdata(client); in sht21_show_temperature() local
[all …]
DMakefile108 obj-$(CONFIG_SENSORS_SHT21) += sht21.o
DKconfig903 will be called sht21.
/linux-3.4.99/Documentation/hwmon/
Dsht211 Kernel driver sht21
6 Prefix: 'sht21'
12 Prefix: 'sht21'
30 I2C address 0x40, so an entry with I2C_BOARD_INFO("sht21", 0x40) can be used