From: Bhumika Goyal Date: Thu, 17 Aug 2017 09:15:59 +0000 (+0530) Subject: ALSA: usb: make snd_pcm_hardware const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aaffbf7824dde48dc9f72ffa1beb8a1dcb767fe1;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git ALSA: usb: make snd_pcm_hardware const Make this const as it is only used in a copy operation. Done using Coccinelle. Signed-off-by: Bhumika Goyal Signed-off-by: Takashi Iwai --- diff --git a/sound/usb/pcm.c b/sound/usb/pcm.c index 9aa5b1855481..a4f3390608d5 100644 --- a/sound/usb/pcm.c +++ b/sound/usb/pcm.c @@ -857,7 +857,7 @@ static int snd_usb_pcm_prepare(struct snd_pcm_substream *substream) return ret; } -static struct snd_pcm_hardware snd_usb_hardware = +static const struct snd_pcm_hardware snd_usb_hardware = { .info = SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID |