diff options
author | Shrirang Bagul <shrirang.bagul@canonical.com> | 2017-03-30 23:47:21 +0800 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2017-04-02 10:18:41 +0100 |
commit | 51f528a1636f352ad776a912ac86026ac7a89a2a (patch) | |
tree | 3f1ae931c7cc423eacce7e6d50587628e88e25fa | |
parent | 4bdc9029685ac03be50b320b29691766d2326c2b (diff) | |
download | linux-stable-51f528a1636f352ad776a912ac86026ac7a89a2a.tar.gz linux-stable-51f528a1636f352ad776a912ac86026ac7a89a2a.tar.bz2 linux-stable-51f528a1636f352ad776a912ac86026ac7a89a2a.zip |
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>
-rw-r--r-- | drivers/iio/pressure/st_pressure_core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/pressure/st_pressure_core.c b/drivers/iio/pressure/st_pressure_core.c index 5f2680855552..fd0edca0e656 100644 --- a/drivers/iio/pressure/st_pressure_core.c +++ b/drivers/iio/pressure/st_pressure_core.c @@ -457,6 +457,7 @@ static const struct st_sensor_settings st_press_sensors_settings[] = { .addr_stat_drdy = ST_SENSORS_DEFAULT_STAT_ADDR, }, .multi_read_bit = true, + .bootime = 2, }, }; |