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/msm/dp: stop passing panel to msm_dp_audio_get()

The dp_audio module doesn't make any use of the passed DP panel
instance. Drop the argument.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Tested-by: Stephen Boyd <swboyd@chromium.org> # sc7180-trogdor
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/629056/
Link: https://lore.kernel.org/r/20241216-fd-dp-audio-fixup-v4-5-f8d1961cf22f@linaro.org

+2 -6
+1 -2
drivers/gpu/drm/msm/dp/dp_audio.c
··· 351 351 } 352 352 353 353 struct msm_dp_audio *msm_dp_audio_get(struct platform_device *pdev, 354 - struct msm_dp_panel *panel, 355 354 struct msm_dp_catalog *catalog) 356 355 { 357 356 int rc = 0; 358 357 struct msm_dp_audio_private *audio; 359 358 struct msm_dp_audio *msm_dp_audio; 360 359 361 - if (!pdev || !panel || !catalog) { 360 + if (!pdev || !catalog) { 362 361 DRM_ERROR("invalid input\n"); 363 362 rc = -EINVAL; 364 363 goto error;
-3
drivers/gpu/drm/msm/dp/dp_audio.h
··· 8 8 9 9 #include <linux/platform_device.h> 10 10 11 - #include "dp_panel.h" 12 11 #include "dp_catalog.h" 13 12 #include <sound/hdmi-codec.h> 14 13 ··· 27 28 * Creates and instance of dp audio. 28 29 * 29 30 * @pdev: caller's platform device instance. 30 - * @panel: an instance of msm_dp_panel module. 31 31 * @catalog: an instance of msm_dp_catalog module. 32 32 * 33 33 * Returns the error code in case of failure, otherwize 34 34 * an instance of newly created msm_dp_module. 35 35 */ 36 36 struct msm_dp_audio *msm_dp_audio_get(struct platform_device *pdev, 37 - struct msm_dp_panel *panel, 38 37 struct msm_dp_catalog *catalog); 39 38 40 39 /**
+1 -1
drivers/gpu/drm/msm/dp/dp_display.c
··· 780 780 goto error_ctrl; 781 781 } 782 782 783 - dp->audio = msm_dp_audio_get(dp->msm_dp_display.pdev, dp->panel, dp->catalog); 783 + dp->audio = msm_dp_audio_get(dp->msm_dp_display.pdev, dp->catalog); 784 784 if (IS_ERR(dp->audio)) { 785 785 rc = PTR_ERR(dp->audio); 786 786 pr_err("failed to initialize audio, rc = %d\n", rc);