]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/rockchip: inno_hdmi: Remove unneeded has audio flag
authorMaxime Ripard <mripard@kernel.org>
Fri, 22 Dec 2023 17:42:00 +0000 (18:42 +0100)
committerHeiko Stuebner <heiko@sntech.de>
Fri, 29 Dec 2023 23:33:18 +0000 (00:33 +0100)
The sink_has_audio flag is not used anywhere in the driver so let's get
rid of it. It's redundant with drm_display_info.has_audio anyway.

Signed-off-by: Maxime Ripard <mripard@kernel.org>
Tested-by: Alex Bee <knaerzche@gmail.com>
Signed-off-by: Alex Bee <knaerzche@gmail.com>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20231222174220.55249-10-knaerzche@gmail.com
drivers/gpu/drm/rockchip/inno_hdmi.c

index 437c5dcbab0daa3cdfa2445f3e1fb900c4076964..6120ab8dd8fd183a348be0c7e029923f953b0de2 100644 (file)
@@ -27,7 +27,6 @@
 #include "inno_hdmi.h"
 
 struct hdmi_data_info {
-       bool sink_has_audio;
        unsigned int enc_in_format;
        unsigned int enc_out_format;
        unsigned int colorimetry;
@@ -553,7 +552,6 @@ static int inno_hdmi_connector_get_modes(struct drm_connector *connector)
 
        edid = drm_get_edid(connector, hdmi->ddc);
        if (edid) {
-               hdmi->hdmi_data.sink_has_audio = drm_detect_monitor_audio(edid);
                drm_connector_update_edid_property(connector, edid);
                ret = drm_add_edid_modes(connector, edid);
                kfree(edid);