ASoC: intel: sof_sdw: Make find_codec_info_acpi() return a pointer
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 26 Mar 2024 16:03:57 +0000 (11:03 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 26 Mar 2024 16:13:21 +0000 (16:13 +0000)
commitc2c7a8b3848127f3355109d72c865b7741af9f0c
treefb0567732f4fce8c3a370c045a88275283ec63eb
parent087777347bea060f82fa97827e7d1f625c0f9376
ASoC: intel: sof_sdw: Make find_codec_info_acpi() return a pointer

Rather than returning an index simply return a pointer to the
located codec info, this simplifies all the callers which only
want to access the codec info structure. Also remove the inline
specifier the function is fairly large for an inline function,
let the compiler decide.

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