Skip to content

Commit 74a15fa

Browse files
krzkbroonie
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/20240429-n-asoc-const-snd-pcm-hardware-v1-4-c6ce60989834@linaro.org Signed-off-by: Mark Brown <[email protected]>
1 parent 7b5ce9f commit 74a15fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/uniphier/aio-dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
#include "aio.h"
1616

17-
static struct snd_pcm_hardware uniphier_aiodma_hw = {
17+
static const struct snd_pcm_hardware uniphier_aiodma_hw = {
1818
.info = SNDRV_PCM_INFO_MMAP |
1919
SNDRV_PCM_INFO_MMAP_VALID |
2020
SNDRV_PCM_INFO_INTERLEAVED,

0 commit comments

Comments
 (0)