]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf1a5a4a673bbfb1fe3e11700779a6d01ce1fb083
tree3f1ae931c7cc423eacce7e6d50587628e88e25fa
parentfe08b5d9cda977387161c9627b68ce8966765e22
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>
drivers/iio/pressure/st_pressure_core.c