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)
commit21f79128e0a16e10fd0fa43485fdff01008e0296
tree69fceed3e1e1ea1d9df0c8fb613773e0a6f3e524
parentbccd5c5102a97d62b6339ebbea5b3f805ba13c14
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