mirror of
https://github.com/torvalds/linux.git
synced 2026-11-28 17:32:32 +00:00
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: Rajeev Nandan <[email protected]> Reviewed-by: Douglas Anderson <[email protected]> Signed-off-by: Douglas Anderson <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
This commit is contained in:
committed by
Douglas Anderson
parent
10f7b40e4f
commit
bfd451403d
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user