Skip to content

Commit ed90156

Browse files
krzkbroonie
authored andcommitted
ASoC: fsl: 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-2-c6ce60989834@linaro.org Signed-off-by: Mark Brown <[email protected]>
1 parent e6fa350 commit ed90156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/fsl/imx-pcm-rpmsg.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#include "fsl_rpmsg.h"
1717
#include "imx-pcm-rpmsg.h"
1818

19-
static struct snd_pcm_hardware imx_rpmsg_pcm_hardware = {
19+
static const struct snd_pcm_hardware imx_rpmsg_pcm_hardware = {
2020
.info = SNDRV_PCM_INFO_INTERLEAVED |
2121
SNDRV_PCM_INFO_BLOCK_TRANSFER |
2222
SNDRV_PCM_INFO_BATCH |

0 commit comments

Comments
 (0)