drm/rockchip: inno_hdmi: Replace drm_detect_hdmi_monitor() with is_hdmi
authorJosé Expósito <jose.exposito89@gmail.com>
Thu, 21 Apr 2022 17:07:22 +0000 (19:07 +0200)
committerHeiko Stuebner <heiko@sntech.de>
Mon, 2 May 2022 21:57:23 +0000 (23:57 +0200)
commitd449222dd533ca83a3a2f88aafe06fdd8d589280
treebd23d7b4abcaea0fd887b6e6afd711bc9a3c9be8
parent7494b1ed1df414e43dc8429f0c016b2054b1b5da
drm/rockchip: inno_hdmi: Replace drm_detect_hdmi_monitor() with is_hdmi

Once EDID is parsed, the monitor HDMI support information is available
through drm_display_info.is_hdmi.

This driver calls drm_detect_hdmi_monitor() to receive the same
information and stores its own cached value, which is less efficient.

Avoid calling drm_detect_hdmi_monitor() and use drm_display_info.is_hdmi
instead and also remove hdmi_data_info.sink_is_hdmi as it is no longer
necessary.

Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20220421170725.903361-3-jose.exposito89@gmail.com
drivers/gpu/drm/rockchip/inno_hdmi.c