Re: [alsa-devel] [PATCH 08/12] ASoC: qcom: Remove useless function call

2017-08-21 Thread Banajit Goswami
On Sun, Aug 20, 2017 at 01:43:57PM +0800, Peng Donglin wrote: > The function platform_set_drvdata(pdev, data) copies the value of > the variable data to pdev->dev.driver_data,but when calling > snd_soc_register_card,the function dev_set_drvdata(card->dev, card) > will override it, so i think that t

[PATCH 08/12] ASoC: qcom: Remove useless function call

2017-08-19 Thread Peng Donglin
The function platform_set_drvdata(pdev, data) copies the value of the variable data to pdev->dev.driver_data,but when calling snd_soc_register_card,the function dev_set_drvdata(card->dev, card) will override it, so i think that the former copy operation is useless and can be removed. Signed-off-by