From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751170AbdDBJSf (ORCPT ); Sun, 2 Apr 2017 05:18:35 -0400 Received: from saturn.retrosnub.co.uk ([178.18.118.26]:47498 "EHLO saturn.retrosnub.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750984AbdDBJSd (ORCPT ); Sun, 2 Apr 2017 05:18:33 -0400 Subject: Re: [RESEND PATCH] iio: st_pressure: initialize lps22hb bootime To: Shrirang Bagul References: <20170330154723.9612-1-shrirang.bagul@canonical.com> Cc: Hartmut Knaack , Lars-Peter Clausen , Peter Meerwald-Stadler , Gregor Boirie , Linus Walleij , Marcin Niestroj , Rob Herring , linux-iio@vger.kernel.org, linux-kernel@vger.kernel.org From: Jonathan Cameron Message-ID: <7618daba-7fb8-4e14-97ed-72bdd13a14a3@kernel.org> Date: Sun, 2 Apr 2017 10:18:31 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 In-Reply-To: <20170330154723.9612-1-shrirang.bagul@canonical.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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, > }, > }; > >