]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/dpcd_bl: Cache some backlight capabilities in intel_panel.backlight
authorLyude Paul <lyude@redhat.com>
Fri, 14 May 2021 18:14:58 +0000 (14:14 -0400)
committerLyude Paul <lyude@redhat.com>
Wed, 9 Jun 2021 17:35:20 +0000 (13:35 -0400)
commit97b326956c7fa6207608448d4fb15063abbdf785
treee9cb14227bd75b2f7eb425094291d8b9d36c6b56
parente4a47e637c0b12fb7744308189e953c0ff25af45
drm/i915/dpcd_bl: Cache some backlight capabilities in intel_panel.backlight

Since we're about to be moving this code into shared DRM helpers, we might
as well start to cache certain backlight capabilities that can be
determined from the EDP DPCD, and are likely to be relevant to the majority
of drivers using said helpers. The main purpose of this is just to prevent
every driver from having to check everything against the eDP DPCD using DP
macros, which makes the code slightly easier to read (especially since the
names of some of the eDP capabilities don't exactly match up with what we
actually need to use them for, like DP_EDP_BACKLIGHT_BRIGHTNESS_BYTE_COUNT
for instance).

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-5-lyude@redhat.com
drivers/gpu/drm/i915/display/intel_display_types.h
drivers/gpu/drm/i915/display/intel_dp_aux_backlight.c