drm/edid: Rename drm_hdmi_avi_infoframe_colorspace to _colorimetry
authorMaxime Ripard <maxime@cerno.tech>
Thu, 20 Jan 2022 15:16:10 +0000 (16:16 +0100)
committerMaxime Ripard <maxime@cerno.tech>
Tue, 25 Jan 2022 09:00:13 +0000 (10:00 +0100)
commit4a46e5d251a39e7c10493743ac89a31f6f3ce5b5
treecf042eab43b5fae0d2a0e15dd1ad93da71279736
parent4fd5e720b709b87f67809a871fde9fb6cb910f28
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.

Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220120151625.594595-2-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