aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2020-11-27 14:26:31 +0100
committerTakashi Iwai <tiwai@suse.de>2020-11-27 14:26:31 +0100
commitfa27b1adbef730bf04b52bb44741df78eab7314d (patch)
treef97eb73299052c0c0fa973e2e9679f986ab83e4d
parent8d59f60b14a296e0d41aeae8ec592c3476b3c451 (diff)
downloadhda-emu-fa27b1adbef730bf04b52bb44741df78eab7314d.tar.gz
Add const to snd_kcontrol_new name field
This fixes compile warnings in the recent ca0132 driver. Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--include/sound/control.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sound/control.h b/include/sound/control.h
index a78e679..3b20f91 100644
--- a/include/sound/control.h
+++ b/include/sound/control.h
@@ -17,7 +17,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 */