Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: sound/aoa/codecs/onyx.c: use static const for texts

'texts' is only used as source in strcpy

Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Fabian Frederick and committed by
Takashi Iwai
00a6d7b6 16c23952

+1 -1
+1 -1
sound/aoa/codecs/onyx.c
··· 241 241 static int onyx_snd_capture_source_info(struct snd_kcontrol *kcontrol, 242 242 struct snd_ctl_elem_info *uinfo) 243 243 { 244 - static char *texts[] = { "Line-In", "Microphone" }; 244 + static const char * const texts[] = { "Line-In", "Microphone" }; 245 245 246 246 uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; 247 247 uinfo->count = 1;