diff options
author | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2024-04-29 13:48:49 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2024-05-07 00:00:22 +0900 |
commit | 74a15fabd271d0fd82ceecbbfa1b98ea0a4709dd (patch) | |
tree | 65174f595280e701c0a7a68c78a1a647bea216fb /sound/soc/uniphier | |
parent | 7b5ce9f0c52a5885d34d46bba62e9eaedc3dd459 (diff) | |
download | linux-stable-74a15fabd271d0fd82ceecbbfa1b98ea0a4709dd.tar.gz linux-stable-74a15fabd271d0fd82ceecbbfa1b98ea0a4709dd.tar.bz2 linux-stable-74a15fabd271d0fd82ceecbbfa1b98ea0a4709dd.zip |
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>
Diffstat (limited to 'sound/soc/uniphier')
-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, |