Commit 8920c9f0 authored by Brian Masney's avatar Brian Masney Committed by openeuler-sync-bot
Browse files

iio: light: tsl2772: fix reading proximity-diodes from device tree

stable inclusion
from stable-v5.10.179
commit 09daff9c3cd77c4c2e195de82a2082ee956db0e0
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8C809

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=09daff9c3cd77c4c2e195de82a2082ee956db0e0



--------------------------------

commit b1cb00d5 upstream.

tsl2772_read_prox_diodes() will correctly parse the properties from
device tree to determine which proximity diode(s) to read from, however
it didn't actually set this value on the struct tsl2772_settings. Let's
go ahead and fix that.

Reported-by: default avatarTom Rix <trix@redhat.com>
Link: https://lore.kernel.org/lkml/20230327120823.1369700-1-trix@redhat.com/


Fixes: 94cd1113 ("iio: tsl2772: add support for reading proximity led settings from device tree")
Signed-off-by: default avatarBrian Masney <bmasney@redhat.com>
Link: https://lore.kernel.org/r/20230404011455.339454-1-bmasney@redhat.com


Cc: <Stable@vger.kernel.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
(cherry picked from commit b4258db5)
parent 70c1e452
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment