diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2024-04-29 14:48:49 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-05-06 18:00:22 +0300 |
commit | 74a15fabd271d0fd82ceecbbfa1b98ea0a4709dd (patch) | |
tree | 65174f595280e701c0a7a68c78a1a647bea216fb | |
parent | 7b5ce9f0c52a5885d34d46bba62e9eaedc3dd459 (diff) | |
download | linux-74a15fabd271d0fd82ceecbbfa1b98ea0a4709dd.tar.xz |
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>
-rw-r--r-- | sound/soc/uniphier/aio-dma.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/uniphier/aio-dma.c b/sound/soc/uniphier/aio-dma.c index fe272befd967..265d61723e99 100644 --- a/sound/soc/uniphier/aio-dma.c +++ b/sound/soc/uniphier/aio-dma.c @@ -14,7 +14,7 @@ #include "aio.h" -static struct snd_pcm_hardware uniphier_aiodma_hw = { +static const struct snd_pcm_hardware uniphier_aiodma_hw = { .info = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_INTERLEAVED, |