提交 5ac2ba94 编写于 作者: M Mark Brown

ALSA: core: Constify the name in new kcontrols

We never modify it and this lets us use a const string as the name without
warnings.
Signed-off-by: NMark Brown <broonie@opensource.wolfsonmicro.com>
Reviewed-by: NTakashi Iwai <tiwai@suse.de>
Acked-by: NLiam Girdwood <lrg@ti.com>
上级 059ad760
......@@ -40,7 +40,7 @@ struct snd_kcontrol_new {
snd_ctl_elem_iface_t iface; /* interface identifier */
unsigned int device; /* device/client number */
unsigned int subdevice; /* subdevice (substream) number */
unsigned char *name; /* ASCII name of item */
const unsigned char *name; /* ASCII name of item */
unsigned int index; /* index of item */
unsigned int access; /* access rights */
unsigned int count; /* count of same elements */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册