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)
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

index 5f26808..fd0edca 100644 (file)
@@ -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,
        },
 };