瀏覽代碼

ALSA: pcxhr: 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 <bhumirks@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Bhumika Goyal 8 年之前
父節點
當前提交
ecc6a044eb
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      sound/pci/pcxhr/pcxhr.c

+ 1 - 1
sound/pci/pcxhr/pcxhr.c

@@ -986,7 +986,7 @@ static int pcxhr_hw_free(struct snd_pcm_substream *subs)
 /*
  *  CONFIGURATION SPACE for all pcms, mono pcm must update channels_max
  */
-static struct snd_pcm_hardware pcxhr_caps =
+static const struct snd_pcm_hardware pcxhr_caps =
 {
 	.info             = (SNDRV_PCM_INFO_MMAP |
 			     SNDRV_PCM_INFO_INTERLEAVED |