diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2024-04-29 13:48:48 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-05-07 00:00:22 +0900 |
commit | 7b5ce9f0c52a5885d34d46bba62e9eaedc3dd459 (patch) | |
tree | f01fb3339f08499d00902c31e4bcd9f20d1d0c7b /sound/soc/meson/aiu-fifo-spdif.c | |
parent | ed90156037659473ee95eafe3f72d8498e5384ff (diff) |
ASoC: meson: 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-3-c6ce60989834@linaro.org
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/meson/aiu-fifo-spdif.c')
-rw-r--r-- | sound/soc/meson/aiu-fifo-spdif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/meson/aiu-fifo-spdif.c b/sound/soc/meson/aiu-fifo-spdif.c index fa91f3c53fa4..e0e00ec026dc 100644 --- a/sound/soc/meson/aiu-fifo-spdif.c +++ b/sound/soc/meson/aiu-fifo-spdif.c @@ -27,7 +27,7 @@ #define AIU_FIFO_SPDIF_BLOCK 8 -static struct snd_pcm_hardware fifo_spdif_pcm = { +static const struct snd_pcm_hardware fifo_spdif_pcm = { .info = (SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID | |