]> 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)
commit3b51c2bb6f5f3f8a88fe9f4ab62e38496b2d200b
treee9cb14227bd75b2f7eb425094291d8b9d36c6b56
parent46e745a8edc8c2a2fe4fdc491d7e39598e104441
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