From: Bhumika Goyal Date: Thu, 17 Aug 2017 09:15:50 +0000 (+0530) Subject: ALSA: atmel: make snd_pcm_hardware const X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=85ab373843a642a4b4e9228095e6233521e55494;p=openwrt%2Fstaging%2Fblogic.git ALSA: atmel: 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/atmel/ac97c.c b/sound/atmel/ac97c.c index 9d2c9d9af688..f85131bfa6cd 100644 --- a/sound/atmel/ac97c.c +++ b/sound/atmel/ac97c.c @@ -66,7 +66,7 @@ struct atmel_ac97c { #define ac97c_readl(chip, reg) \ __raw_readl((chip)->regs + AC97C_##reg) -static struct snd_pcm_hardware atmel_ac97c_hw = { +static const struct snd_pcm_hardware atmel_ac97c_hw = { .info = (SNDRV_PCM_INFO_MMAP | SNDRV_PCM_INFO_MMAP_VALID | SNDRV_PCM_INFO_INTERLEAVED