]> git.baikalelectronics.ru Git - kernel.git/commit
backlight: qcom-wled: Use sink_addr for sync toggle
authorObeida Shamoun <oshmoun100@googlemail.com>
Sun, 14 Mar 2021 10:11:10 +0000 (11:11 +0100)
committerLee Jones <lee.jones@linaro.org>
Mon, 22 Mar 2021 14:29:03 +0000 (14:29 +0000)
commit6543bc8a9708690e4c63120cffaf2d38a35b8a23
treeb5e3df01bb782acc81ff03f3eae319630eb95ee1
parentf33fafc6f9e085aac24d7469d026cd4bf85a7013
backlight: qcom-wled: Use sink_addr for sync toggle

WLED3_SINK_REG_SYNC is, as the name implies, a sink register offset.
Therefore, use the sink address as base instead of the ctrl address.

This fixes the sync toggle on wled4, which can be observed by the fact
that adjusting brightness now works.

It has no effect on wled3 because sink and ctrl base addresses are the
same.  This allows adjusting the brightness without having to disable
then reenable the module.

Signed-off-by: Obeida Shamoun <oshmoun100@googlemail.com>
Signed-off-by: Konrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: Marijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Acked-by: Kiran Gunda <kgunda@codeaurora.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/qcom-wled.c