]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/i915/dpcd_bl: Cleanup intel_dp_aux_vesa_enable_backlight() a bit
authorLyude Paul <lyude@redhat.com>
Fri, 14 May 2021 18:14:57 +0000 (14:14 -0400)
committerLyude Paul <lyude@redhat.com>
Wed, 9 Jun 2021 17:35:19 +0000 (13:35 -0400)
commit46e745a8edc8c2a2fe4fdc491d7e39598e104441
treea2f26b54eef7b569b87fb35025d0d766f43e4d16
parent3faea9939a3d1eb5a40f3f6100c24792865b6445
drm/i915/dpcd_bl: Cleanup intel_dp_aux_vesa_enable_backlight() a bit

Get rid of the extraneous switch case in here, and just open code
edp_backlight_mode as we only ever use it once.

v4:
* Check that backlight mode is DP_EDP_BACKLIGHT_CONTROL_MODE_DPCD, not
  DP_EDP_BACKLIGHT_CONTROL_MODE_MASK - imirkin

Signed-off-by: Lyude Paul <lyude@redhat.com>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210514181504.565252-4-lyude@redhat.com
drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c