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

ASoC: uniphier: Constify static snd_pcm_hardware

Static 'struct snd_pcm_hardware' is not modified by the driver and its
copy is passed to the core, so it can be made const for increased code
safety.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240429-n-asoc-const-snd-pcm-hardware-v1-4-c6ce60989834@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Krzysztof Kozlowski and committed by
Mark Brown
74a15fab 7b5ce9f0

+1 -1
+1 -1
sound/soc/uniphier/aio-dma.c
··· 14 14 15 15 #include "aio.h" 16 16 17 - static struct snd_pcm_hardware uniphier_aiodma_hw = { 17 + static const struct snd_pcm_hardware uniphier_aiodma_hw = { 18 18 .info = SNDRV_PCM_INFO_MMAP | 19 19 SNDRV_PCM_INFO_MMAP_VALID | 20 20 SNDRV_PCM_INFO_INTERLEAVED,