iio: light: opt3001: Fixed timeout error when 0 lux
authorJiri Valek - 2N <valek@2n.cz>
Mon, 20 Sep 2021 12:53:48 +0000 (14:53 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 3 Oct 2021 15:43:25 +0000 (16:43 +0100)
commit26d90b5590579def54382a2fc34cfbe8518a9851
tree852b77557d9c97140810a0be1f4ff19d4627f7e3
parentea1945c2f72d7bd253e2ebaa97cdd8d9ffcde076
iio: light: opt3001: Fixed timeout error when 0 lux

Reading from sensor returned timeout error under
zero light conditions.

Signed-off-by: Jiri Valek - 2N <valek@2n.cz>
Fixes: ac663db3678a ("iio: light: opt3001: enable operation w/o IRQ")
Link: https://lore.kernel.org/r/20210920125351.6569-1-valek@2n.cz
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/light/opt3001.c