diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2024-06-17 15:03:23 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-06-18 14:19:56 +0100 |
commit | de267e7a6ea8e6fa29af2287adfc9fc9d87e6dc9 (patch) | |
tree | 66c5ebbd3497416a3b1801e0183f030fb4389ecb /include/sound | |
parent | 785d64c4941221044940ab199e6625af17296470 (diff) | |
download | lwn-de267e7a6ea8e6fa29af2287adfc9fc9d87e6dc9.tar.gz lwn-de267e7a6ea8e6fa29af2287adfc9fc9d87e6dc9.zip |
ASoC: Constify return of snd_soc_dai_get_pcm_stream()
Returned 'struct snd_soc_pcm_stream' by snd_soc_dai_get_pcm_stream() is
not modified by the users, so it can be changed as pointer to const.
This is a necessary step towards making the 'dai->driver' a pointer to
const.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://msgid.link/r/20240617-n-asoc-const-auto-selectable-formats-v1-5-8004f346ee38@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/soc-dai.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h index f22969298de1..bd249710d716 100644 --- a/include/sound/soc-dai.h +++ b/include/sound/soc-dai.h @@ -473,7 +473,7 @@ struct snd_soc_dai { unsigned int probed:1; }; -static inline struct snd_soc_pcm_stream * +static inline const struct snd_soc_pcm_stream * snd_soc_dai_get_pcm_stream(const struct snd_soc_dai *dai, int stream) { return (stream == SNDRV_PCM_STREAM_PLAYBACK) ? |