OSDN Git Service

iio: st_pressure: initialize lps22hb bootime
authorShrirang Bagul <shrirang.bagul@canonical.com>
Thu, 30 Mar 2017 15:47:21 +0000 (23:47 +0800)
committerJonathan Cameron <jic23@kernel.org>
Sun, 2 Apr 2017 09:18:41 +0000 (10:18 +0100)
commit51f528a1636f352ad776a912ac86026ac7a89a2a
tree3f1ae931c7cc423eacce7e6d50587628e88e25fa
parent4bdc9029685ac03be50b320b29691766d2326c2b
iio: st_pressure: initialize lps22hb bootime

This patch initializes the bootime in struct st_sensor_settings for
lps22hb sensor. Without this, sensor channels read from sysfs always
report stale values.

Signed-off-by: Shrirang Bagul <shrirang.bagul@canonical.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/pressure/st_pressure_core.c