Skip to content

Commit

Permalink
Add const to snd_kcontrol_new name field
Browse files Browse the repository at this point in the history
This fixes compile warnings in the recent ca0132 driver.

Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
tiwai committed Nov 27, 2020
1 parent 8d59f60 commit fa27b1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/sound/control.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit fa27b1a

Please sign in to comment.