ASoC: intel: sof_sdw: Make find_codec_info_part() return a pointer
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Tue, 26 Mar 2024 16:03:56 +0000 (11:03 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 26 Mar 2024 16:13:20 +0000 (16:13 +0000)
commit087777347bea060f82fa97827e7d1f625c0f9376
tree565390c1ab27bdd1163972c7bc695c39e2d55e24
parent4ed0915f5bc4bcc81bca783a5b984f3d81e9764e
ASoC: intel: sof_sdw: Make find_codec_info_part() 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-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_sdw.c