drm/connector: Create a helper to attach the hdr_output_metadata property
authorMaxime Ripard <maxime@cerno.tech>
Fri, 30 Apr 2021 09:44:47 +0000 (11:44 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Fri, 7 May 2021 15:13:04 +0000 (17:13 +0200)
commite057b52c1d90e2898fdc01c95d21bd70c81b968a
tree2b7a504ae815e01cacf57d94b06a6b05f65665e2
parent2a2180a1c7be55de926801128ae5ecb098040f6e
drm/connector: Create a helper to attach the hdr_output_metadata property

All the drivers that implement HDR output call pretty much the same
function to initialise the hdr_output_metadata property, and while the
creation of that property is in a helper, every driver uses the same
code to attach it.

Provide a helper for it as well

Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Jernej Skrabec <jernej.skrabec@siol.net>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20210430094451.2145002-1-maxime@cerno.tech
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
drivers/gpu/drm/bridge/synopsys/dw-hdmi.c
drivers/gpu/drm/drm_connector.c
drivers/gpu/drm/i915/display/intel_hdmi.c
include/drm/drm_connector.h