Re: [PATCH 09/12] iio: light: rohm-bu27034: Fix infinite delay on error

Matti Vaittinen <[email protected]>
Newsgroups org.kernel.vger.linux-iio,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On 10/08/2026 23:09, Andy Shevchenko wrote:
> On Mon, Aug 10, 2026 at 10:54:04AM +0300, Matti Vaittinen wrote:
> 
>> When reading an integration-time fails, the code will use error code to
>> compute the sleep time.
>>
>> Fix this by using the smallest integration time as a default if
>> reading fails.
> 
> ...
> 
>> +#define BU27034_INT_TIME_MIN 55000
> 
> #define BU27034_INT_TIME_US_MIN (55 * USEC_PER_MSEC)

Yes. That looks better, thanks.

-- 
Matti Vaittinen
Linux kernel developer at ROHM Semiconductors
Oulu Finland

~~ When things go utterly wrong vim users can always type :help! ~~
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.