提交 bfd45140 编写于 作者: R Rajeev Nandan 提交者: Douglas Anderson

drm/panel-simple: Support DP AUX backlight

If there is no backlight specified in the device tree and the panel
has access to the DP AUX channel then create a DP AUX backlight if
supported by the panel.
Signed-off-by: NRajeev Nandan <rajeevny@codeaurora.org>
Reviewed-by: NDouglas Anderson <dianders@chromium.org>
Signed-off-by: NDouglas Anderson <dianders@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/1624726268-14869-3-git-send-email-rajeevny@codeaurora.org
上级 10f7b40e
......@@ -800,6 +800,12 @@ static int panel_simple_probe(struct device *dev, const struct panel_desc *desc,
if (err)
goto disable_pm_runtime;
if (!panel->base.backlight && panel->aux) {
err = drm_panel_dp_aux_backlight(&panel->base, panel->aux);
if (err)
goto disable_pm_runtime;
}
drm_panel_add(&panel->base);
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册