iio: dht11: Use boottime
authorAbhilash Jindal <klock.android@gmail.com>
Wed, 27 Jan 2016 22:46:02 +0000 (17:46 -0500)
committerJonathan Cameron <jic23@kernel.org>
Mon, 1 Feb 2016 20:16:13 +0000 (20:16 +0000)
commit17a2f46c3d8877fe2a0b6ff391d1df30e67892a6
treeb9157688a9f3e3ebe04306ea2db4c5746708db50
parentddeb35cbd6221751f0197ffaa9500da31e8337f4
iio: dht11: Use boottime

Wall time obtained from ktime_get_real_ns is susceptible to sudden jumps due to
user setting the time or due to NTP.  Boot time is constantly increasing time
better suited for comparing two timestamps.

Signed-off-by: Abhilash Jindal <klock.android@gmail.com>
Reviewed-by: Harald Geyer <harald@ccbib.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/humidity/dht11.c