]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sun4i: hdmi: Replace drm_detect_hdmi_monitor() with is_hdmi
authorJosé Expósito <jose.exposito89@gmail.com>
Thu, 21 Apr 2022 17:07:25 +0000 (19:07 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Fri, 22 Apr 2022 09:51:52 +0000 (11:51 +0200)
commitd9b22a7b9bef42a008e36e97e9d94a52364119a5
tree4221c570487243357ba3b7a2316f70d32ac2612d
parentbd9525de4f9f7c09ff614eb76606d6c4657a0e3d
drm/sun4i: 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 sun4i_hdmi.hdmi_monitor as it is no longer
necessary.

Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Link: https://patchwork.freedesktop.org/patch/msgid/20220421170725.903361-6-jose.exposito89@gmail.com
drivers/gpu/drm/sun4i/sun4i_hdmi.h
drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c