Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1613235 > unrolled thread

[RESEND PATCH] iio: st_pressure: initialize lps22hb bootime

Started byShrirang Bagul <shrirang.bagul@canonical.com>
First post2017-03-30 17:50 +0200
Last post2017-04-02 11:20 +0200
Articles 2 — 2 participants

Back to article view | Back to linux.kernel


Contents

  [RESEND PATCH] iio: st_pressure: initialize lps22hb bootime Shrirang Bagul <shrirang.bagul@canonical.com> - 2017-03-30 17:50 +0200
    Re: [RESEND PATCH] iio: st_pressure: initialize lps22hb bootime Jonathan Cameron <jic23@kernel.org> - 2017-04-02 11:20 +0200

#1613235 — [RESEND PATCH] iio: st_pressure: initialize lps22hb bootime

FromShrirang Bagul <shrirang.bagul@canonical.com>
Date2017-03-30 17:50 +0200
Subject[RESEND PATCH] iio: st_pressure: initialize lps22hb bootime
Message-ID<tqKuK-8ry-23@gated-at.bofh.it>
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>
---
 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

[toc] | [next] | [standalone]


#1614678

FromJonathan Cameron <jic23@kernel.org>
Date2017-04-02 11:20 +0200
Message-ID<trJPX-6YN-1@gated-at.bofh.it>
In reply to#1613235
On 30/03/17 16:47, Shrirang Bagul wrote:
> 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>
Applied to the fixes-togreg branch of iio.git and marked for stable.

Thanks,

Jonathan
> ---
>  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,
>  	},
>  };
>  
> 

[toc] | [prev] | [standalone]


Back to top | Article view | linux.kernel


csiph-web