Skip to contentSkip to conversation

iio: humidity: dht11 remove TODO since it doesn't make sense

PATCH Applied Kent Gustavsson 2 participants 2 messages Jan 4, 2020 – Jan 11, 2020 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: humidity: dht11 remove TODO since it doesn't make sense

DHT11 isn't addressable and will trigger temperature measurement on any data sent on the bus.

---
 drivers/iio/humidity/dht11.c | 1 -
 1 file changed, 1 deletion(-)
drivers/iio/humidity/dht11.c +0 -1
index b459600e1a33..d05c6fdb758b 100644
@@ -174,7 +174,6 @@ static irqreturn_t dht11_handle_irq(int irq, void *data)
 	struct iio_dev *iio = data;
 	struct dht11 *dht11 = iio_priv(iio);
 
-	/* TODO: Consider making the handler safe for IRQ sharing */
 	if (dht11->num_edges < DHT11_EDGES_PER_READ && dht11->num_edges >= 0) {
 		dht11->edges[dht11->num_edges].ts = ktime_get_boottime_ns();
 		dht11->edges[dht11->num_edges++].value =
Signature · 1 line
2.23.0
maintainer Applied
#1 lore raw
Quoted 4 lines · On Sat, 4 Jan 2020 19:19:29 +0100 Kent Gustavsson <[email protected]> wrote:

DHT11 isn't addressable and will trigger temperature measurement on any data sent on the bus.

Applied.

Thanks,

Jonathan

Quoted 16 lines
---
 drivers/iio/humidity/dht11.c | 1 -
 1 file changed, 1 deletion(-)
drivers/iio/humidity/dht11.c +0 -1
index b459600e1a33..d05c6fdb758b 100644
@@ -174,7 +174,6 @@ static irqreturn_t dht11_handle_irq(int irq, void *data)
 	struct iio_dev *iio = data;
 	struct dht11 *dht11 = iio_priv(iio);
 
-	/* TODO: Consider making the handler safe for IRQ sharing */
 	if (dht11->num_edges < DHT11_EDGES_PER_READ && dht11->num_edges >= 0) {
 		dht11->edges[dht11->num_edges].ts = ktime_get_boottime_ns();
 		dht11->edges[dht11->num_edges++].value =