summaryrefslogtreecommitdiff
path: root/sound/soc/fsl/imx-pcm-rpmsg.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2024-05-07 17:38:40 +0300
committerMark Brown <broonie@kernel.org>2024-05-07 17:38:40 +0300
commit80513607dfd86a1d83b3111305bef934c49c81ed (patch)
treeba1d75e141d68a376e2763c54400be91ea12a521 /sound/soc/fsl/imx-pcm-rpmsg.c
parent741e987d04324810a832205052872be45ecaf9f6 (diff)
parent74a15fabd271d0fd82ceecbbfa1b98ea0a4709dd (diff)
downloadlinux-80513607dfd86a1d83b3111305bef934c49c81ed.tar.xz
ASoC: Constify static snd_pcm_hardware
Merge series from Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>: Static 'struct snd_pcm_hardware' is not modified by few drivers and its copy is passed to the core, so it can be made const for increased code safety.
Diffstat (limited to 'sound/soc/fsl/imx-pcm-rpmsg.c')
-rw-r--r--sound/soc/fsl/imx-pcm-rpmsg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/imx-pcm-rpmsg.c b/sound/soc/fsl/imx-pcm-rpmsg.c
index ba491cbb9930..b0944a07ab47 100644
--- a/sound/soc/fsl/imx-pcm-rpmsg.c
+++ b/sound/soc/fsl/imx-pcm-rpmsg.c
@@ -16,7 +16,7 @@
#include "fsl_rpmsg.h"
#include "imx-pcm-rpmsg.h"
-static struct snd_pcm_hardware imx_rpmsg_pcm_hardware = {
+static const struct snd_pcm_hardware imx_rpmsg_pcm_hardware = {
.info = SNDRV_PCM_INFO_INTERLEAVED |
SNDRV_PCM_INFO_BLOCK_TRANSFER |
SNDRV_PCM_INFO_BATCH |