From: Bhumika Goyal Date: Thu, 17 Aug 2017 09:15:59 +0000 (+0530) Subject: ALSA: usb: make snd_pcm_hardware const X-Git-Tag: v4.14-rc4~21^2~27^2~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=aaffbf7824dde48dc9f72ffa1beb8a1dcb767fe1;p=platform%2Fkernel%2Flinux-rpi.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 9aa5b18..a4f3390 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 |