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
This commit is contained in:
Maxime Ripard 2021-04-30 11:44:50 +02:00
commit 21f79128e0
No known key found for this signature in database
GPG key ID: E3EF0D6F671851C5
3 changed files with 23 additions and 4 deletions