drm/connector: Create a helper to attach the hdr_output_metadata property
authorMaxime Ripard <maxime@cerno.tech>
Fri, 19 Mar 2021 10:21:41 +0000 (11:21 +0100)
committerpopcornmix <popcornmix@gmail.com>
Mon, 12 Apr 2021 17:08:50 +0000 (18:08 +0100)
commit8debbd4e09a9c24732ff23a80a50ecfcb0bdc05a
treec587209066efd47f6efc17e264452ecaa1981e79
parent56400344aa078d04b8ea274ab6bb9d454193b7ef
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

Signed-off-by: Maxime Ripard <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