drm/i915: Convert pipe_config_infoframe_mismatch() to drm_printer
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Thu, 15 Feb 2024 16:40:47 +0000 (18:40 +0200)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 15 Mar 2024 12:20:59 +0000 (14:20 +0200)
commit78d319a2349a9828792469a716d33a6ac0bcb067
tree9dcff49e0201421aae6aa26f2c322625477652ee
parent98a33735f26cfed4f2d6a03766d7b8d95975d7f6
drm/i915: Convert pipe_config_infoframe_mismatch() to drm_printer

Utilize drm_printer in pipe_config_infoframe_mismatch() to avoid
a bit of code duplication.

hdmi_infoframe_log() can't use the printer of course, but for that
we can just figure out which loglevel to use. And we do need to keep
the explicit drm_debug_enabled(DRM_UT_KMS) since hdmi_infoframe_log()
won't do it for us.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240215164055.30585-5-ville.syrjala@linux.intel.com
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/i915/display/intel_display.c