soundwire: Use snd_soc_substream_to_rtd() to obtain rtd
authorCezary Rojewski <cezary.rojewski@intel.com>
Mon, 19 Feb 2024 10:52:06 +0000 (11:52 +0100)
committerVinod Koul <vkoul@kernel.org>
Sun, 3 Mar 2024 13:59:28 +0000 (19:29 +0530)
commite17aae16acf53938deb4b7702aa4f6cee2c4a073
treefdd54ba499ad05bab4d9e2caebb7a5cda44f77ed
parent99fea943d9dc2500227bced9acd671e5b39a1471
soundwire: Use snd_soc_substream_to_rtd() to obtain rtd

Utilize the helper function instead of casting from ->private_data
directly.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://lore.kernel.org/r/20240219105206.335738-1-cezary.rojewski@intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/soundwire/stream.c