Re: [PATCH] iio: st_sensors: Fix the sleep time for sampling

2018-11-26 Thread Jian-Hong Pan
e description. Thank you. Jian-Hong Pan > > > -Original Message- > > > From: linux-iio-ow...@vger.kernel.org > > > On Behalf Of Jian-Hong Pan > > > Sent: Sunday, November 18, 2018 10:12 PM > > > To: Jonathan Cameron ; Hartmut Knaack >

Re: [PATCH] iio: st_sensors: Fix the sleep time for sampling

2018-11-25 Thread Jonathan Cameron
; > Behalf Of Jian-Hong Pan > > Sent: Sunday, November 18, 2018 10:12 PM > > To: Jonathan Cameron ; Hartmut Knaack ; > > Lars-Peter Clausen ; Peter Meerwald-Stadler > > ; Dominique Martinet > > Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; >

Re: [PATCH] iio: st_sensors: Fix the sleep time for sampling

2018-11-20 Thread Jian-Hong Pan
l.org; > li...@endlessm.com; Jian-Hong Pan > Subject: [PATCH] iio: st_sensors: Fix the sleep time for sampling > > According to the description of st_sensor_settings and st_sensor_data > structures' comments: > - bootime: samples to discard when sensor passing from powe

RE: [PATCH] iio: st_sensors: Fix the sleep time for sampling

2018-11-19 Thread Denis CIOCCA
; Hartmut Knaack ; Lars-Peter Clausen ; Peter Meerwald-Stadler ; Dominique Martinet Cc: linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; li...@endlessm.com; Jian-Hong Pan Subject: [PATCH] iio: st_sensors: Fix the sleep time for sampling According to the description of st_sensor_se

[PATCH] iio: st_sensors: Fix the sleep time for sampling

2018-11-18 Thread Jian-Hong Pan
According to the description of st_sensor_settings and st_sensor_data structures' comments: - bootime: samples to discard when sensor passing from power-down to power-up. - odr: Output data rate of the sensor [Hz]. The sleep time should be sdata->sensor_settings->bootime + 1000 / sdata->odr ms. S