ALSA: core: Constify the name in new kcontrols
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 17 Feb 2012 01:08:13 +0000 (17:08 -0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 17 Feb 2012 16:09:48 +0000 (08:09 -0800)
We never modify it and this lets us use a const string as the name without
warnings.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Reviewed-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Liam Girdwood <lrg@ti.com>
include/sound/control.h

index b2796e83c7acf3d1b4dd5bfacd76966a4c3eff4e..57815f6a02b95f64dfcf49aa5c68089b768724df 100644 (file)
@@ -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 */
This page took 0.026033 seconds and 5 git commands to generate.