drm/connector: Add a helper to attach the colorspace property
authorMaxime Ripard <maxime@cerno.tech>
Fri, 9 Apr 2021 15:07:32 +0000 (17:07 +0200)
committerpopcornmix <popcornmix@gmail.com>
Mon, 12 Apr 2021 17:08:50 +0000 (18:08 +0100)
commit2a1297bd80afdb1166b6cb00d0327fb27f86a5bf
treef3ac5a39212bf5689a9db7e0a6211376c6c5bc3e
parent81c6b9d19742d8bb92562960ddc9684ead70cf89
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.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/drm_connector.c
drivers/gpu/drm/i915/display/intel_connector.c
include/drm/drm_connector.h