summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/panel/panel-novatek-nt36672a.c
diff options
context:
space:
mode:
authorJoel Selvaraj <jo@jsfamily.in>2022-04-01 03:18:08 +0300
committerSumit Semwal <sumit.semwal@linaro.org>2022-06-08 21:06:40 +0300
commitc11256f82ec82216f69dafee75b3d854d92392d1 (patch)
tree3834ad60ab40738460724b170890bf370732af46 /drivers/gpu/drm/panel/panel-novatek-nt36672a.c
parent514c62048b9cca3b7d1ac23c373ad9b4ea92ba1f (diff)
downloadlinux-c11256f82ec82216f69dafee75b3d854d92392d1.tar.xz
drm/panel: nt36672a: add backlight support
Add support for backlight. This panel supports backlight control through the QCOM WLED driver in Xiaomi Poco F1 device. Signed-off-by: Joel Selvaraj <jo@jsfamily.in> Reviewed-by: Marijn Suijten <marijn.suijten@somainline.org> Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org> Link: https://patchwork.freedesktop.org/patch/msgid/BY5PR02MB700935F5817128CB7C3991CDD9E09@BY5PR02MB7009.namprd02.prod.outlook.com
Diffstat (limited to 'drivers/gpu/drm/panel/panel-novatek-nt36672a.c')
-rw-r--r--drivers/gpu/drm/panel/panel-novatek-nt36672a.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/gpu/drm/panel/panel-novatek-nt36672a.c b/drivers/gpu/drm/panel/panel-novatek-nt36672a.c
index 231f371901e8..6d6ce42787e2 100644
--- a/drivers/gpu/drm/panel/panel-novatek-nt36672a.c
+++ b/drivers/gpu/drm/panel/panel-novatek-nt36672a.c
@@ -628,6 +628,10 @@ static int nt36672a_panel_add(struct nt36672a_panel *pinfo)
drm_panel_init(&pinfo->base, dev, &panel_funcs, DRM_MODE_CONNECTOR_DSI);
+ ret = drm_panel_of_backlight(&pinfo->base);
+ if (ret)
+ return dev_err_probe(dev, ret, "Failed to get backlight\n");
+
drm_panel_add(&pinfo->base);
return 0;