[PATCH][Xenial SRU] iio: st_pressure: initialize lps22hb bootime

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[PATCH][Xenial SRU] iio: st_pressure: initialize lps22hb bootime

Shrirang Bagul
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: Shrirang Bagul <[hidden email]>
Cc: <[hidden email]>
Signed-off-by: Jonathan Cameron <[hidden email]>
(backported from commit 51f528a1636f352ad776a912ac86026ac7a89a2a)
Signed-off-by: Shrirang Bagul <[hidden email]>
---
 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 da8f147..542b644 100644
--- a/drivers/iio/pressure/st_pressure_core.c
+++ b/drivers/iio/pressure/st_pressure_core.c
@@ -533,6 +533,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,
  },
 };
 
--
2.9.3


--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

ACK: [PATCH][Xenial SRU] iio: st_pressure: initialize lps22hb bootime

Tim Gardner-2
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

ACK: [PATCH][Xenial SRU] iio: st_pressure: initialize lps22hb bootime

Joseph Salisbury-3
In reply to this post by Shrirang Bagul
Backport only required due to context diff.

--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

APPLIED[X/master-next]: [PATCH][Xenial SRU] iio: st_pressure: initialize lps22hb bootime

Stefan Bader-2
In reply to this post by Shrirang Bagul



--
kernel-team mailing list
[hidden email]
https://lists.ubuntu.com/mailman/listinfo/kernel-team

signature.asc (836 bytes) Download Attachment
Loading...