From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH 1/1] sound/aoa/codecs/onyx.c: use static const for texts Date: Tue, 27 May 2014 12:01:03 +0200 Message-ID: References: <20140527091218.246af6a3346fa67930e41f18@skynet.be> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id BEF5926170F for ; Tue, 27 May 2014 12:01:03 +0200 (CEST) In-Reply-To: <20140527091218.246af6a3346fa67930e41f18@skynet.be> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Fabian Frederick Cc: alsa-devel@alsa-project.org, Johannes Berg List-Id: alsa-devel@alsa-project.org At Tue, 27 May 2014 09:12:18 +0200, Fabian Frederick wrote: > > 'texts' is only used as source in strcpy > > Cc: Johannes Berg > Cc: Jaroslav Kysela > Cc: Takashi Iwai > Signed-off-by: Fabian Frederick Thanks, applied. Takashi > --- > This is untested. > > sound/aoa/codecs/onyx.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/sound/aoa/codecs/onyx.c b/sound/aoa/codecs/onyx.c > index f01bffb..401107b 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; > -- > 1.9.1 > > _______________________________________________ > Alsa-devel mailing list > Alsa-devel@alsa-project.org > http://mailman.alsa-project.org/mailman/listinfo/alsa-devel >