[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20170330153707.9084-1-shrirang.bagul@canonical.com>
Date: Thu, 30 Mar 2017 23:37:05 +0800
From: Shrirang Bagul <shrirang.bagul@...onical.com>
To: jic23@...nel.org
Cc: Hartmut Knaack <knaack.h@....de>,
Lars-Peter Clausen <lars@...afoo.de>,
Peter Meerwald-Stadler <pmeerw@...erw.net>,
Gregor Boirie <gregor.boirie@...rot.com>,
Linus Walleij <linus.walleij@...aro.org>,
Marcin Niestroj <m.niestroj@...nn-global.com>,
linux-iio@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: 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@...onical.com>
---
drivers/iio/pressure/st_pressure_core.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/iio/pressure/st_pressure_core.c b/drivers/iio/pressure/st_pressure_core.c
index 5f26808..fd0edca 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,
},
};
--
2.9.3
Powered by blists - more mailing lists