]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Oct 2021 09:40:15 +0000 (11:40 +0200)
commit9360c607d82861c7dc8cca66226dd8a14d0e7038
tree346d10a9974d458a9c1d05404f7a04003f22cfd0
parent76c0641cd360af983868fca52cb87c59dd9cfc69
iio: light: opt3001: Fixed timeout error when 0 lux

commit 26d90b5590579def54382a2fc34cfbe8518a9851 upstream.

Reading from sensor returned timeout error under
zero light conditions.

Signed-off-by: Jiri Valek - 2N <valek@2n.cz>
Fixes: 52f0a68c9d69 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/light/opt3001.c