drm/i915/lspcon: Create separate infoframe_enabled helper
authorUma Shankar <uma.shankar@intel.com>
Mon, 30 Nov 2020 20:47:34 +0000 (02:17 +0530)
committerUma Shankar <uma.shankar@intel.com>
Tue, 1 Dec 2020 19:59:52 +0000 (01:29 +0530)
commita44289b923f6092e3103e8e1b83a5d0b86d34769
treeeaf64a453a5a89fd726a7bf352eeeb8b213f9ee7
parentc5044aee4039671d72ddcfdb38ea0a3b32effab4
drm/i915/lspcon: Create separate infoframe_enabled helper

Lspcon has Infoframes as well as DIP for HDR metadata(DRM Infoframe).
Create a separate mechanism for lspcon compared to HDMI in order to
address the same and ensure future scalability.

v2: Streamlined this as per Ville's suggestions, making sure that
HDMI infoframe versions are directly returned instead of a redundant
and confusing DIP overhead.

Suggested-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Uma Shankar <uma.shankar@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201130204738.2443-12-uma.shankar@intel.com
drivers/gpu/drm/i915/display/intel_ddi.c
drivers/gpu/drm/i915/display/intel_lspcon.c
drivers/gpu/drm/i915/display/intel_lspcon.h