Now that try_vesa_interface is the default fallback mechanism it
need not be reassigned to true based on certain checks.

Signed-off-by: Suraj Kandpal <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c 
b/drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
index f14abc48a2a7..e0d0eee30ef4 100644
--- a/drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
+++ b/drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c
@@ -668,20 +668,12 @@ int intel_dp_aux_init_backlight_funcs(struct 
intel_connector *connector)
                if (panel->vbt.backlight.type != 
INTEL_BACKLIGHT_VESA_EDP_AUX_INTERFACE)
                        try_intel_interface = true;
 
-               try_vesa_interface = true;
-               break;
-       case INTEL_DP_AUX_BACKLIGHT_FORCE_VESA:
-               try_vesa_interface = true;
                break;
        case INTEL_DP_AUX_BACKLIGHT_FORCE_INTEL:
                try_intel_interface = true;
                break;
        }
 
-       /* For eDP 1.5 and above we are supposed to use VESA interface for 
brightness control */
-       if (intel_dp->edp_dpcd[0] >= DP_EDP_15)
-               try_vesa_interface = true;
-
        /*
         * Since Intel has their own backlight control interface, the majority 
of machines out there
         * using DPCD backlight controls with Intel GPUs will be using this 
interface as opposed to
-- 
2.34.1

Reply via email to