aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorShrirang Bagul <shrirang.bagul@canonical.com>2017-03-30 23:47:21 +0800
committerJonathan Cameron <jic23@kernel.org>2017-04-02 10:18:41 +0100
commit51f528a1636f352ad776a912ac86026ac7a89a2a (patch)
tree3f1ae931c7cc423eacce7e6d50587628e88e25fa /drivers/iio
parentiio: bmg160: reset chip when probing (diff)
downloadlinux-dev-51f528a1636f352ad776a912ac86026ac7a89a2a.tar.xz
linux-dev-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>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/pressure/st_pressure_core.c1
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,
},
};