mirror of
https://github.com/torvalds/linux.git
synced 2026-05-24 15:12:13 +02:00
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
This commit is contained in:
parent
429783c22f
commit
c9261bcc15
|
|
@ -351,14 +351,13 @@ int msm_dp_register_audio_driver(struct device *dev,
|
|||
}
|
||||
|
||||
struct msm_dp_audio *msm_dp_audio_get(struct platform_device *pdev,
|
||||
struct msm_dp_panel *panel,
|
||||
struct msm_dp_catalog *catalog)
|
||||
{
|
||||
int rc = 0;
|
||||
struct msm_dp_audio_private *audio;
|
||||
struct msm_dp_audio *msm_dp_audio;
|
||||
|
||||
if (!pdev || !panel || !catalog) {
|
||||
if (!pdev || !catalog) {
|
||||
DRM_ERROR("invalid input\n");
|
||||
rc = -EINVAL;
|
||||
goto error;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@
|
|||
|
||||
#include <linux/platform_device.h>
|
||||
|
||||
#include "dp_panel.h"
|
||||
#include "dp_catalog.h"
|
||||
#include <sound/hdmi-codec.h>
|
||||
|
||||
|
|
@ -28,14 +27,12 @@ struct msm_dp_audio {
|
|||
* Creates and instance of dp audio.
|
||||
*
|
||||
* @pdev: caller's platform device instance.
|
||||
* @panel: an instance of msm_dp_panel module.
|
||||
* @catalog: an instance of msm_dp_catalog module.
|
||||
*
|
||||
* Returns the error code in case of failure, otherwize
|
||||
* an instance of newly created msm_dp_module.
|
||||
*/
|
||||
struct msm_dp_audio *msm_dp_audio_get(struct platform_device *pdev,
|
||||
struct msm_dp_panel *panel,
|
||||
struct msm_dp_catalog *catalog);
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -780,7 +780,7 @@ static int msm_dp_init_sub_modules(struct msm_dp_display_private *dp)
|
|||
goto error_ctrl;
|
||||
}
|
||||
|
||||
dp->audio = msm_dp_audio_get(dp->msm_dp_display.pdev, dp->panel, dp->catalog);
|
||||
dp->audio = msm_dp_audio_get(dp->msm_dp_display.pdev, dp->catalog);
|
||||
if (IS_ERR(dp->audio)) {
|
||||
rc = PTR_ERR(dp->audio);
|
||||
pr_err("failed to initialize audio, rc = %d\n", rc);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user