From: Bhumika Goyal Date: Sat, 12 Aug 2017 15:31:20 +0000 (+0530) Subject: ALSA: lx6464es: make snd_pcm_hardware const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=033bb5676d5961371b8ec130ee9f9f9202ebd263;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ALSA: lx6464es: make snd_pcm_hardware const Make this const as it is only used during a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal Signed-off-by: Takashi Iwai --- diff --git a/sound/pci/lx6464es/lx6464es.c b/sound/pci/lx6464es/lx6464es.c index f9c3e86d55d5..9655b08a1c52 100644 --- a/sound/pci/lx6464es/lx6464es.c +++ b/sound/pci/lx6464es/lx6464es.c @@ -77,7 +77,7 @@ MODULE_DEVICE_TABLE(pci, snd_lx6464es_ids); /* alsa callbacks */ -static struct snd_pcm_hardware lx_caps = { +static const struct snd_pcm_hardware lx_caps = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_INTERLEAVED | SNDRV_PCM_INFO_MMAP_VALID |