]> git.baikalelectronics.ru Git - kernel.git/commit
drm/connector: Add a helper to attach the colorspace property
authorMaxime Ripard <maxime@cerno.tech>
Fri, 30 Apr 2021 09:44:50 +0000 (11:44 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Fri, 7 May 2021 15:14:59 +0000 (17:14 +0200)
commit8f6f8d7bb61fe645cc47a8f6c95962e63a37cb8a
tree69fceed3e1e1ea1d9df0c8fb613773e0a6f3e524
parentf0b261e36be58d79caaa79a8d530c79ce4ea853e
drm/connector: Add a helper to attach the colorspace property

The intel driver uses the same logic to attach the Colorspace property
in multiple places and we'll need it in vc4 too. Let's move that common
code in a helper.

Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20210430094451.2145002-4-maxime@cerno.tech
drivers/gpu/drm/drm_connector.c
drivers/gpu/drm/i915/display/intel_connector.c
include/drm/drm_connector.h