drm/vc4: hdmi: Remove unused argument in vc4_hdmi_supports_scrambling
authorMaxime Ripard <maxime@cerno.tech>
Tue, 2 Nov 2021 12:35:22 +0000 (13:35 +0100)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Mon, 19 Sep 2022 19:33:09 +0000 (20:33 +0100)
Even though vc4_hdmi_supports_scrambling takes a mode as an argument, it
never uses it. Let's remove it.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/gpu/drm/vc4/vc4_hdmi.c

index c2c51d3..bb7490a 100644 (file)
@@ -821,8 +821,7 @@ static void vc4_hdmi_set_infoframes(struct drm_encoder *encoder)
        vc4_hdmi_set_hdr_infoframe(encoder);
 }
 
-static bool vc4_hdmi_supports_scrambling(struct drm_encoder *encoder,
-                                        const struct drm_display_mode *mode)
+static bool vc4_hdmi_supports_scrambling(struct drm_encoder *encoder)
 {
        struct vc4_hdmi *vc4_hdmi = encoder_to_vc4_hdmi(encoder);
        struct drm_display_info *display = &vc4_hdmi->connector.display_info;
@@ -851,7 +850,7 @@ static void vc4_hdmi_enable_scrambling(struct drm_encoder *encoder)
 
        lockdep_assert_held(&vc4_hdmi->mutex);
 
-       if (!vc4_hdmi_supports_scrambling(encoder, mode))
+       if (!vc4_hdmi_supports_scrambling(encoder))
                return;
 
        if (!vc4_hdmi_mode_needs_scrambling(mode,