]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-line6: constify snd_kcontrol_new strucutre array
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 14 Apr 2017 04:13:50 +0000 (13:13 +0900)
committerTakashi Iwai <tiwai@suse.de>
Fri, 14 Apr 2017 06:57:56 +0000 (08:57 +0200)
commit501ae0468a0330da1e4a91fea4f2e36e240271a5
tree0c359bf5603afc9bf7881d2091e019731a8a378b
parent4735b748737abe91321d74b88a9ceb765c60aa68
ALSA: usb-line6: constify snd_kcontrol_new strucutre array

In kernel APIs of ALSA control interface, drivers can create a control
element set by a call of snd_ctl_new1() with a template. This template
is known to have const qualifier in general cases.

This commit adds the qualifier to template array, for safer program and
runtime. Application of this change moves the symbol from .data section
to .rodata section.

Cc: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/line6/pcm.c