Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/vc4: hdmi: Pass vc4_hdmi to vc4_hdmi_supports_scrambling()

Simplify vc4_hdmi_supports_scrambling() by changing its first parameter
from struct drm_encoder to struct vc4_hdmi.

Signed-off-by: José Expósito <jose.exposito89@gmail.com>
Link: https://lore.kernel.org/r/20221110134752.238820-2-jose.exposito89@gmail.com
Signed-off-by: Maxime Ripard <maxime@cerno.tech>

authored by

José Expósito and committed by
Maxime Ripard
d2187508 69c7717c

+3 -5
+3 -5
drivers/gpu/drm/vc4/vc4_hdmi.c
··· 124 124 vc4_hdmi_encoder_compute_mode_clock(const struct drm_display_mode *mode, 125 125 unsigned int bpc, enum vc4_hdmi_output_format fmt); 126 126 127 - static bool vc4_hdmi_supports_scrambling(struct drm_encoder *encoder) 127 + static bool vc4_hdmi_supports_scrambling(struct vc4_hdmi *vc4_hdmi) 128 128 { 129 - struct vc4_hdmi *vc4_hdmi = encoder_to_vc4_hdmi(encoder); 130 129 struct drm_display_info *display = &vc4_hdmi->connector.display_info; 131 130 132 131 lockdep_assert_held(&vc4_hdmi->mutex); ··· 320 321 { 321 322 struct drm_device *drm = connector->dev; 322 323 struct vc4_hdmi *vc4_hdmi = connector_to_vc4_hdmi(connector); 323 - struct drm_encoder *encoder = &vc4_hdmi->encoder.base; 324 324 struct drm_connector_state *conn_state; 325 325 struct drm_crtc_state *crtc_state; 326 326 struct drm_crtc *crtc; ··· 347 349 if (!crtc_state->active) 348 350 return 0; 349 351 350 - if (!vc4_hdmi_supports_scrambling(encoder)) 352 + if (!vc4_hdmi_supports_scrambling(vc4_hdmi)) 351 353 return 0; 352 354 353 355 scrambling_needed = vc4_hdmi_mode_needs_scrambling(&vc4_hdmi->saved_adjusted_mode, ··· 865 867 866 868 lockdep_assert_held(&vc4_hdmi->mutex); 867 869 868 - if (!vc4_hdmi_supports_scrambling(encoder)) 870 + if (!vc4_hdmi_supports_scrambling(vc4_hdmi)) 869 871 return; 870 872 871 873 if (!vc4_hdmi_mode_needs_scrambling(mode,