drm/edid: Introduce drm_default_rgb_quant_range()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 11 Jan 2017 14:18:35 +0000 (16:18 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 26 Jan 2017 16:37:13 +0000 (18:37 +0200)
commitc8127cf08ab9797c3954df463741ac47039d2b55
treeb447523600b9d128e7d25117cf054c783a017d3c
parent00147934598478f7fbd0a4ce5380f2fecad542b5
drm/edid: Introduce drm_default_rgb_quant_range()

Make the code selecting the RGB quantization range a little less magicy
by wrapping it up in a small helper.

v2: s/adjusted_mode/mode in vc4 to make it actually compile
v3: Add a comment proposed by Eric

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170111141835.25369-1-ville.syrjala@linux.intel.com
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Acked-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/drm_edid.c
drivers/gpu/drm/i915/intel_dp.c
drivers/gpu/drm/i915/intel_hdmi.c
drivers/gpu/drm/vc4/vc4_hdmi.c
include/drm/drm_edid.h