]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
backlight: qcom-wled: Change PM8950 WLED configurations
authorBarnabás Czémán <barnabas.czeman@mainlining.org>
Fri, 16 Jan 2026 07:07:36 +0000 (08:07 +0100)
committerLee Jones <lee@kernel.org>
Wed, 4 Feb 2026 10:26:03 +0000 (10:26 +0000)
PMI8950 WLED needs same configurations as PMI8994 WLED.

Fixes: 10258bf4534b ("backlight: qcom-wled: Add PMI8950 compatible")
Signed-off-by: Barnabás Czémán <barnabas.czeman@mainlining.org>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Reviewed-by: Daniel Thompson (RISCstar) <danielt@kernel.org>
Link: https://patch.msgid.link/20260116-pmi8950-wled-v3-4-e6c93de84079@mainlining.org
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/video/backlight/qcom-wled.c

index 5decbd39b789905097dbfd7b089fd8dd8c0b242e..8054e4787725ef6ac49f465b8909df1cb085e9f7 100644 (file)
@@ -1455,7 +1455,8 @@ static int wled_configure(struct wled *wled)
                break;
 
        case 4:
-               if (of_device_is_compatible(dev->of_node, "qcom,pmi8994-wled")) {
+               if (of_device_is_compatible(dev->of_node, "qcom,pmi8950-wled") ||
+                   of_device_is_compatible(dev->of_node, "qcom,pmi8994-wled")) {
                        u32_opts = pmi8994_wled_opts;
                        size = ARRAY_SIZE(pmi8994_wled_opts);
                } else {