ASoC: intel: sof_sdw: Move sdw_pin_index into private struct
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Fri, 15 Sep 2023 07:56:08 +0000 (15:56 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 15 Sep 2023 12:27:24 +0000 (13:27 +0100)
commitfc46ecf34782c0d3ec8224ce6003a2631f8a93f1
treee3808f91231e4809abfc5794eae2c8d7f0b7209f
parent642d1de63cea161c629afd2e82d9db5a1582ffea
ASoC: intel: sof_sdw: Move sdw_pin_index into private struct

Whilst it should not cause any issues as only a single instance of the
machine will be instantiated, it is still slightly better practice to
keep working data in the private data structure, rather than a global
variable. Move sdw_pin_index into the mc_private structure.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://lore.kernel.org/r/20230915075611.1619548-2-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_sdw.c
sound/soc/intel/boards/sof_sdw_common.h