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)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Fri, 17 Dec 2021 13:36:14 +0000 (13:36 +0000)
commit1d82e2f0e10d39268ac3ec31e9e6bd55fcfd6ec4
treefa9c4e9268065631d09d3c73ba6157b3a3923f8e
parentb9288431b2da9f61cacc5ab7adba1a6cd82a5c3d
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/vc4/vc4_hdmi.c
include/drm/drm_edid.h