]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3f2c40883b6ee8d51d8ef47683b47f9c1ee2fff8
treebd23d7b4abcaea0fd887b6e6afd711bc9a3c9be8
parent4046ea051f50b3db40edd3a1a5d95787af9137ca
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