From: Mark Brown Date: Fri, 17 Feb 2012 01:08:13 +0000 (-0800) Subject: ALSA: core: Constify the name in new kcontrols X-Git-Tag: firefly_0821_release~3680^2~2691^2~52^2~25^2~79 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5ac2ba9452b0a59df6cec10e8d27c52cf0b41a43;p=firefly-linux-kernel-4.4.55.git 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: Mark Brown Reviewed-by: Takashi Iwai Acked-by: Liam Girdwood --- diff --git a/include/sound/control.h b/include/sound/control.h index b2796e83c7ac..57815f6a02b9 100644 --- a/include/sound/control.h +++ b/include/sound/control.h @@ -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 */