From: Fabian Frederick Date: Tue, 27 May 2014 07:12:18 +0000 (+0200) Subject: ALSA: sound/aoa/codecs/onyx.c: use static const for texts X-Git-Tag: firefly_0821_release~176^2~3750^2~41 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=00a6d7b6762c27d441e9ac8faff36384bc0fc180;p=firefly-linux-kernel-4.4.55.git ALSA: sound/aoa/codecs/onyx.c: use static const for texts 'texts' is only used as source in strcpy Signed-off-by: Fabian Frederick Signed-off-by: Takashi Iwai --- diff --git a/sound/aoa/codecs/onyx.c b/sound/aoa/codecs/onyx.c index f01bffb702bc..401107b85d30 100644 --- a/sound/aoa/codecs/onyx.c +++ b/sound/aoa/codecs/onyx.c @@ -241,7 +241,7 @@ static struct snd_kcontrol_new inputgain_control = { static int onyx_snd_capture_source_info(struct snd_kcontrol *kcontrol, struct snd_ctl_elem_info *uinfo) { - static char *texts[] = { "Line-In", "Microphone" }; + static const char * const texts[] = { "Line-In", "Microphone" }; uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED; uinfo->count = 1;