Skip to content

Commit 00a6d7b

Browse files
Fabian Fredericktiwai
authored andcommitted
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>
1 parent 16c2395 commit 00a6d7b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎sound/aoa/codecs/onyx.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ static struct snd_kcontrol_new inputgain_control = {
241241
static int onyx_snd_capture_source_info(struct snd_kcontrol *kcontrol,
242242
struct snd_ctl_elem_info *uinfo)
243243
{
244-
static char *texts[] = { "Line-In", "Microphone" };
244+
static const char * const texts[] = { "Line-In", "Microphone" };
245245

246246
uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
247247
uinfo->count = 1;

0 commit comments

Comments
 (0)