summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/da9052-hwmon.c
diff options
context:
space:
mode:
authorMatt Ranostay <mranostay@gmail.com>2016-07-25 02:05:32 +0200
committerGuenter Roeck <linux@roeck-us.net>2016-07-31 23:56:36 +0200
commit991f9fa90360b64e8b79688d8ab0f034983a959d (patch)
tree6b38aa01c5caa0f6c55eca9f06a2679bab2e46c1 /drivers/hwmon/da9052-hwmon.c
parentMerge branch 'irq-core-for-linus' of git://git.kernel.org/pub/scm/linux/kerne... (diff)
downloadlinux-991f9fa90360b64e8b79688d8ab0f034983a959d.tar.xz
linux-991f9fa90360b64e8b79688d8ab0f034983a959d.zip
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: Matt Ranostay <mranostay@gmail.com> Reviewed-by: Jean Delvare <jdelvare@suse.de> Fixes: 7c84f7f80d6fc ("hwmon: add support for Sensirion SHT3x sensors") Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/da9052-hwmon.c')
0 files changed, 0 insertions, 0 deletions