Skip to content

Commit bdad4aa

Browse files
committed
drm/i915/backlight: Use drm_edp_backlight_enable
Use drm dp helper to enable backlight now that it has been modified to set PANEL_LUMINANCE_CONTROL_ENABLE bit based on if capability supports it and the driver wants it. Remove the dead code. Signed-off-by: Suraj Kandpal <[email protected]> Reviewed-by: Arun R Murthy <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent aede238 commit bdad4aa

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -498,20 +498,6 @@ intel_dp_aux_vesa_enable_backlight(const struct intel_crtc_state *crtc_state,
498498
struct intel_connector *connector = to_intel_connector(conn_state->connector);
499499
struct intel_panel *panel = &connector->panel;
500500
struct intel_dp *intel_dp = enc_to_intel_dp(connector->encoder);
501-
int ret;
502-
503-
if (panel->backlight.edp.vesa.luminance_control_support) {
504-
ret = drm_dp_dpcd_writeb(&intel_dp->aux, DP_EDP_BACKLIGHT_MODE_SET_REGISTER,
505-
DP_EDP_PANEL_LUMINANCE_CONTROL_ENABLE);
506-
507-
if (ret == 1)
508-
return;
509-
510-
if (!drm_edp_backlight_set_level(&intel_dp->aux,
511-
&panel->backlight.edp.vesa.info,
512-
level))
513-
return;
514-
}
515501

516502
if (!panel->backlight.edp.vesa.info.aux_enable) {
517503
u32 pwm_level;

0 commit comments

Comments
 (0)