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

From: Andy Shevchenko

Date: Mon Aug 10 2026 - 16:09:35 EST


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)

?

--
With Best Regards,
Andy Shevchenko