[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220406161839.srtt7c5eywp56i43@SoMainline.org>
Date: Wed, 6 Apr 2022 18:18:39 +0200
From: Marijn Suijten <marijn.suijten@...ainline.org>
To: Joel Selvaraj <jo@...amily.in>
Cc: Sumit Semwal <sumit.semwal@...aro.org>,
Thierry Reding <thierry.reding@...il.com>,
Sam Ravnborg <sam@...nborg.org>,
David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
Rob Herring <robh+dt@...nel.org>,
Andy Gross <agross@...nel.org>,
Bjorn Andersson <bjorn.andersson@...aro.org>,
dri-devel@...ts.freedesktop.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-arm-msm@...r.kernel.org,
~postmarketos/upstreaming@...ts.sr.ht, phone-devel@...r.kernel.org,
Amit Pundir <amit.pundir@...aro.org>
Subject: Re: [PATCH v2 1/3] drm/panel: nt36672a: add backlight support
On 2022-04-01 05:48:08, Joel Selvaraj wrote:
> 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@...amily.in>
Reviewed-by: Marijn Suijten <marijn.suijten@...ainline.org>
> ---
> drivers/gpu/drm/panel/panel-novatek-nt36672a.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> 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;
> --
> 2.35.1
>
Powered by blists - more mailing lists