]> asedeno.scripts.mit.edu Git - linux.git/commit
ALSA: nm256: constify snd_ac97_res_table
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Thu, 24 Aug 2017 06:25:28 +0000 (11:55 +0530)
committerTakashi Iwai <tiwai@suse.de>
Thu, 24 Aug 2017 07:13:43 +0000 (09:13 +0200)
commit5d3806eea2dd19b083c729a32aded6d012ead5ae
tree1e659e8332bdd6c3b6c8f7e0a9af51cbb477374c
parentfaa119099e4942152fd2ff823ae9961ad00db475
ALSA: nm256: constify snd_ac97_res_table

snd_ac97_res_table are not supposed to change at runtime. All functions
working with snd_ac97_res_table provided by <sound/ac97_codec.h> work with
const snd_ac97_res_table. So mark the non-const structs as const.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/nm256/nm256.c