Skip to content
Commit cdfd4c68 authored by Obeida Shamoun's avatar Obeida Shamoun Committed by Lee Jones
Browse files

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: default avatarObeida Shamoun <oshmoun100@googlemail.com>
Signed-off-by: default avatarKonrad Dybcio <konrad.dybcio@somainline.org>
Signed-off-by: default avatarMarijn Suijten <marijn.suijten@somainline.org>
Reviewed-by: default avatarDaniel Thompson <daniel.thompson@linaro.org>
Acked-by: default avatarKiran Gunda <kgunda@codeaurora.org>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 225be60f
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment