Skip to content
Commit 991f9fa9 authored by Matt Ranostay's avatar Matt Ranostay Committed by Guenter Roeck
Browse files

hwmon: (sht3x) set initial jiffies to last_update



Handling the wraparound requires the data->last_update to be set to an
initial jiffies value. Otherwise on 32-bit systems you will not be able
to request a reading till the 5 minute jiffies rollover happens.

Cc: Guenter Roeck <linux@roeck-us.net>
Cc: David Frey <david.frey@sensirion.com>
Signed-off-by: default avatarMatt Ranostay <mranostay@gmail.com>
Reviewed-by: default avatarJean Delvare <jdelvare@suse.de>
Fixes: 7c84f7f8

 ("hwmon: add support for Sensirion SHT3x sensors")
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent e6580525
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment