backlight: qcom-wled: Add support for short circuit handling
authorKiran Gunda <kgunda@codeaurora.org>
Fri, 1 Nov 2019 06:27:03 +0000 (11:57 +0530)
committerLee Jones <lee.jones@linaro.org>
Fri, 1 Nov 2019 08:11:39 +0000 (08:11 +0000)
commitfeeab87b30726ee3fc0522945c8efaa86a06d48b
tree33d386761f2fdd09ac4508409fe958c7e1b93689
parent03b2b5e8698623c0102ab2ec060f97bf606303a2
backlight: qcom-wled: Add support for short circuit handling

Handle the short circuit interrupt and check if the short circuit
interrupt is valid. Re-enable the module to check if it goes
away. Disable the module altogether if the short circuit event
persists.

Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/video/backlight/qcom-wled.c