Searched refs:dht11 (Results 1 – 3 of 3) sorted by relevance
60 struct dht11 { struct93 static int dht11_decode(struct dht11 *dht11, int offset, int timeres) in dht11_decode() argument104 t = dht11->edges[offset + 2 * i + 2].ts - in dht11_decode()105 dht11->edges[offset + 2 * i + 1].ts; in dht11_decode()106 if (!dht11->edges[offset + 2 * i + 1].value) in dht11_decode()120 dht11->timestamp = ktime_get_real_ns(); in dht11_decode()122 dht11->temperature = (((temp_int & 0x7f) << 8) + temp_dec) * in dht11_decode()124 dht11->humidity = ((hum_int << 8) + hum_dec) * 100; in dht11_decode()126 dht11->temperature = temp_int * 1000; in dht11_decode()127 dht11->humidity = hum_int * 1000; in dht11_decode()[all …]
5 obj-$(CONFIG_DHT11) += dht11.o
4 - compatible: Should be "dht11"12 compatible = "dht11";