]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
iio: st_pressure: initialize lps22hb bootime
authorShrirang Bagul <shrirang.bagul@canonical.com>
Thu, 30 Mar 2017 15:47:21 +0000 (23:47 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 12 Apr 2017 10:42:04 +0000 (12:42 +0200)
commit 51f528a1636f352ad776a912ac86026ac7a89a2a upstream.

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>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/pressure/st_pressure_core.c

index e19e0787864cf436f2db208e5462f13c31a4cd2f..f82560a4f77289251ff41b11d324d9abd91d3bc2 100644 (file)
@@ -455,6 +455,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,
        },
 };