Re: [PATCH v5 3/5] iio:temperature:mlx90632: Convert polling while loop to do-while

2020-08-14 Thread Andy Shevchenko
On Fri, Aug 14, 2020 at 12:42 PM Crt Mori wrote: > On Fri, 14 Aug 2020 at 11:32, Andy Shevchenko > wrote: > > On Fri, Aug 14, 2020 at 10:33 AM Crt Mori wrote: > > > On Thu, 13 Aug 2020 at 21:41, Andy Shevchenko > > > wrote: > > > > On Thu, Aug 13, 2020 at 4:04 PM Crt Mori wrote: > > > > > On

Re: [PATCH v5 3/5] iio:temperature:mlx90632: Convert polling while loop to do-while

2020-08-14 Thread Crt Mori
On Fri, 14 Aug 2020 at 11:32, Andy Shevchenko wrote: > > On Fri, Aug 14, 2020 at 10:33 AM Crt Mori wrote: > > On Thu, 13 Aug 2020 at 21:41, Andy Shevchenko > > wrote: > > > On Thu, Aug 13, 2020 at 4:04 PM Crt Mori wrote: > > > > On Thu, 13 Aug 2020 at 13:24, Andy Shevchenko > > > > wrote: >

Re: [PATCH v5 3/5] iio:temperature:mlx90632: Convert polling while loop to do-while

2020-08-14 Thread Andy Shevchenko
On Fri, Aug 14, 2020 at 10:33 AM Crt Mori wrote: > On Thu, 13 Aug 2020 at 21:41, Andy Shevchenko > wrote: > > On Thu, Aug 13, 2020 at 4:04 PM Crt Mori wrote: > > > On Thu, 13 Aug 2020 at 13:24, Andy Shevchenko > > > wrote: > > > > On Thu, Aug 13, 2020 at 2:14 PM Crt Mori wrote: > > > > > On

Re: [PATCH v5 3/5] iio:temperature:mlx90632: Convert polling while loop to do-while

2020-08-14 Thread Crt Mori
On Thu, 13 Aug 2020 at 21:41, Andy Shevchenko wrote: > > On Thu, Aug 13, 2020 at 4:04 PM Crt Mori wrote: > > On Thu, 13 Aug 2020 at 13:24, Andy Shevchenko > > wrote: > > > On Thu, Aug 13, 2020 at 2:14 PM Crt Mori wrote: > > > > On Thu, 13 Aug 2020 at 13:03, Andy Shevchenko > > > > wrote: > >

Re: [PATCH v5 3/5] iio:temperature:mlx90632: Convert polling while loop to do-while

2020-08-13 Thread Andy Shevchenko
On Thu, Aug 13, 2020 at 4:04 PM Crt Mori wrote: > On Thu, 13 Aug 2020 at 13:24, Andy Shevchenko > wrote: > > On Thu, Aug 13, 2020 at 2:14 PM Crt Mori wrote: > > > On Thu, 13 Aug 2020 at 13:03, Andy Shevchenko > > > wrote: > > > > On Thu, Aug 13, 2020 at 10:53 AM Crt Mori wrote: ... > > > >

Re: [PATCH v5 3/5] iio:temperature:mlx90632: Convert polling while loop to do-while

2020-08-13 Thread Crt Mori
On Thu, 13 Aug 2020 at 13:24, Andy Shevchenko wrote: > > On Thu, Aug 13, 2020 at 2:14 PM Crt Mori wrote: > > > > On Thu, 13 Aug 2020 at 13:03, Andy Shevchenko > > wrote: > > > > > > On Thu, Aug 13, 2020 at 10:53 AM Crt Mori wrote: > > > > > > > > Reduce number of lines and improve readability

Re: [PATCH v5 3/5] iio:temperature:mlx90632: Convert polling while loop to do-while

2020-08-13 Thread Andy Shevchenko
On Thu, Aug 13, 2020 at 2:14 PM Crt Mori wrote: > > On Thu, 13 Aug 2020 at 13:03, Andy Shevchenko > wrote: > > > > On Thu, Aug 13, 2020 at 10:53 AM Crt Mori wrote: > > > > > > Reduce number of lines and improve readability to convert polling while > > > loops to do-while. The iopoll.h interface

Re: [PATCH v5 3/5] iio:temperature:mlx90632: Convert polling while loop to do-while

2020-08-13 Thread Crt Mori
On Thu, 13 Aug 2020 at 13:03, Andy Shevchenko wrote: > > On Thu, Aug 13, 2020 at 10:53 AM Crt Mori wrote: > > > > Reduce number of lines and improve readability to convert polling while > > loops to do-while. The iopoll.h interface was not used, because we > > require more than 20ms timeout, beca

Re: [PATCH v5 3/5] iio:temperature:mlx90632: Convert polling while loop to do-while

2020-08-13 Thread Andy Shevchenko
On Thu, Aug 13, 2020 at 10:53 AM Crt Mori wrote: > > Reduce number of lines and improve readability to convert polling while > loops to do-while. The iopoll.h interface was not used, because we > require more than 20ms timeout, because time for sensor to perform a > measurement is around 10ms and

[PATCH v5 3/5] iio:temperature:mlx90632: Convert polling while loop to do-while

2020-08-13 Thread Crt Mori
Reduce number of lines and improve readability to convert polling while loops to do-while. The iopoll.h interface was not used, because we require more than 20ms timeout, because time for sensor to perform a measurement is around 10ms and it needs to perform measurements for each channel (which cur