iio: dht11: Simplify decoding algorithm
authorHarald Geyer <harald@ccbib.org>
Sun, 17 Jan 2016 16:13:30 +0000 (16:13 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sat, 30 Jan 2016 16:27:13 +0000 (16:27 +0000)
commit155a57593d38cf7153c01cc037373462aa1e1cc1
treede4f9ded1e226936c8f9f37fc093f85621d23b87
parent22acc120a141ce0a3b6e98799d15970ef687bc70
iio: dht11: Simplify decoding algorithm

The new algorithm uses a 'one size fits em all' threshold, which should
be easier to understand and debug. I believe there are no regressions
compared to the old adaptive threshold algorithm. I don't remember why
I chose the old algorithm when I initially wrote the driver.

Signed-off-by: Harald Geyer <harald@ccbib.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/humidity/dht11.c