projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16c2395
)
ALSA: sound/aoa/codecs/onyx.c: use static const for texts
author
Fabian Frederick
<fabf@skynet.be>
Tue, 27 May 2014 07:12:18 +0000
(09:12 +0200)
committer
Takashi Iwai
<tiwai@suse.de>
Tue, 27 May 2014 09:58:55 +0000
(11:58 +0200)
'texts' is only used as source in strcpy
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/aoa/codecs/onyx.c
patch
|
blob
|
history
diff --git
a/sound/aoa/codecs/onyx.c
b/sound/aoa/codecs/onyx.c
index
f01bffb
..
401107b
100644
(file)
--- 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 c
har *
texts[] = { "Line-In", "Microphone" };
+ static c
onst char * const
texts[] = { "Line-In", "Microphone" };
uinfo->type = SNDRV_CTL_ELEM_TYPE_ENUMERATED;
uinfo->count = 1;