drm/edid: Rename drm_hdmi_avi_infoframe_colorspace to _colorimetry
authorMaxime Ripard <maxime@cerno.tech>
Wed, 14 Apr 2021 14:21:08 +0000 (16:21 +0200)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:35 +0000 (16:04 +0000)
commit7e9ec1590f6c2816da14dc86f841b24c5915b354
treed3a29bd952310f1dc342c6daa7bcb54978db9495
parent983268f589ca046bb1af80c0518a834f94397163
drm/edid: Rename drm_hdmi_avi_infoframe_colorspace to _colorimetry

The drm_hdmi_avi_infoframe_colorspace() function actually sets the
colorimetry and extended_colorimetry fields in the hdmi_avi_infoframe
structure with DRM_MODE_COLORIMETRY_* values.

To make things worse, the hdmi_avi_infoframe structure also has a
colorspace field used to signal whether an RGB or YUV output is being
used.

Let's remove the inconsistency and allow for the colorspace usage by
renaming the function.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/drm_edid.c
drivers/gpu/drm/i915/display/intel_hdmi.c
drivers/gpu/drm/i915/display/intel_lspcon.c
drivers/gpu/drm/vc4/vc4_hdmi.c
include/drm/drm_edid.h