ASoC: SOF: sof-audio: Drop the `cmd` member from struct snd_sof_control
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Wed, 15 Dec 2021 18:04:01 +0000 (10:04 -0800)
committerMark Brown <broonie@kernel.org>
Wed, 15 Dec 2021 22:16:44 +0000 (22:16 +0000)
commitdd2fef982ff75fbae618cc274fda09bd40582acd
treea1e82b5dc5f4063c80646e157cb0b3478643aeb3
parent9182f3c40b52ebd91d4796d96186ba10b720b4ba
ASoC: SOF: sof-audio: Drop the `cmd` member from struct snd_sof_control

There is no need to use two variables to store and check the same
information, the scontrol->cmd is the same as scontrol->control_data->cmd.

Drop the former one and when it is needed, access the cmd from the
control_data.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20211215180404.53254-6-ranjani.sridharan@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/control.c
sound/soc/sof/sof-audio.c
sound/soc/sof/sof-audio.h
sound/soc/sof/topology.c