ALSA: ice1712: add const to snd_akm4xxx structures
Declare snd_akm4xxx structures as const as they are only passed to the function snd_ice1712_akm4xxx_init. This argument is of type const, so make the structures const. Done using Coccinelle: @match disable optional_qualifier@ identifier s; position p; @@ static struct snd_akm4xxx s@p={...}; @good1@ identifier match.s; position p; @@ snd_ice1712_akm4xxx_init(...,&s@p,...) @bad@ identifier match.s; position p!={match.p,good1.p}; @@ s@p @depends on !bad disable optional_qualifier@ identifier match.s; @@ static +const struct snd_akm4xxx s={...}; Signed-off-by:Bhumika Goyal <bhumirks@gmail.com> Signed-off-by:
Takashi Iwai <tiwai@suse.de>
Showing
- sound/pci/ice1712/delta.c 6 additions, 6 deletionssound/pci/ice1712/delta.c
- sound/pci/ice1712/ews.c 3 additions, 3 deletionssound/pci/ice1712/ews.c
- sound/pci/ice1712/hoontech.c 1 addition, 1 deletionsound/pci/ice1712/hoontech.c
- sound/pci/ice1712/juli.c 1 addition, 1 deletionsound/pci/ice1712/juli.c
- sound/pci/ice1712/phase.c 1 addition, 1 deletionsound/pci/ice1712/phase.c
- sound/pci/ice1712/quartet.c 1 addition, 1 deletionsound/pci/ice1712/quartet.c
- sound/pci/ice1712/revo.c 5 additions, 5 deletionssound/pci/ice1712/revo.c
Loading
Please register or sign in to comment