Commit 9cff9120 authored by Shrirang Bagul's avatar Shrirang Bagul Committed by Thadeu Lima de Souza Cascardo

iio: st_pressure: initialize lps22hb bootime

BugLink: https://bugs.launchpad.net/bugs/1682103

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: default avatarShrirang Bagul <shrirang.bagul@canonical.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
(backported from commit 51f528a1)
Signed-off-by: default avatarShrirang Bagul <shrirang.bagul@canonical.com>
Acked-by: default avatarTim Gardner <tim.gardner@canonical.com>
Acked-by: default avatarJoseph Salisbury <joseph.salisbury@canonical.com>
Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
parent 14437e84
......@@ -521,6 +521,7 @@ static const struct st_sensor_settings st_press_sensors_settings[] = {
.mask_int2 = ST_PRESS_LPS22HB_DRDY_IRQ_INT2_MASK,
},
.multi_read_bit = ST_PRESS_LPS22HB_MULTIREAD_BIT,
.bootime = 2,
},
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment