]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: pipelines: Harmonize all functions to use struct snd_sof_dev
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Wed, 6 Oct 2021 11:16:51 +0000 (14:16 +0300)
committerMark Brown <broonie@kernel.org>
Thu, 7 Oct 2021 14:45:45 +0000 (15:45 +0100)
commitdd3095af90413431a5dd8f4bc3c6963eda876c53
tree71de0fea8aae2c0cb237408449bbb22a953ca11c
parentf35c42ce2516ba2f1d545ea2d9ec2b09d7ae2d64
ASoC: SOF: pipelines: Harmonize all functions to use struct snd_sof_dev

First thing the pipelines function which have "struct device *dev" as
parameter do is:
struct snd_sof_dev *sdev = dev_get_drvdata(dev);

and in all cases the passed dev is actually coming from sdev->dev.

Skip this steps and pass directly the sdev to all pipelines related
functions as few of them already does this.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Link: https://lore.kernel.org/r/20211006111651.10027-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/pm.c
sound/soc/sof/sof-audio.c
sound/soc/sof/sof-audio.h
sound/soc/sof/topology.c