Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: soc-dai.h: Constify DAI ops auto_selectable_formats

The core ASoC code does not modify contents of the
'auto_selectable_formats' array passed in 'struct snd_soc_dai_ops', so
make it const for code safety.

Reviewed-by: Herve Codina <herve.codina@bootlin.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://msgid.link/r/20240617125735.582963-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
d4a7d067 195815c2

+1 -1
+1 -1
include/sound/soc-dai.h
··· 361 361 * see 362 362 * snd_soc_dai_get_fmt() 363 363 */ 364 - u64 *auto_selectable_formats; 364 + const u64 *auto_selectable_formats; 365 365 int num_auto_selectable_formats; 366 366 367 367 /* probe ordering - for components with runtime dependencies */