/openbmc/linux/sound/pci/pcxhr/ |
H A D | pcxhr_mix22.c | diff f3b827e0b1841f4cfc18436e09f4f269f3be908e Sun Feb 19 12:48:09 CST 2017 Bhumika Goyal <bhumirks@gmail.com> ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having the same property can be made const too. Done using Coccinelle:
@r1 disable optional_qualifier @ identifier i; position p; @@ static struct snd_kcontrol_new i@p = {...};
@ok1@ identifier r1.i; position p; expression e1; @@ snd_ctl_new1(&i@p,e1)
@bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p
@depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct snd_kcontrol_new i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
H A D | pcxhr_mixer.c | diff f3b827e0b1841f4cfc18436e09f4f269f3be908e Sun Feb 19 12:48:09 CST 2017 Bhumika Goyal <bhumirks@gmail.com> ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having the same property can be made const too. Done using Coccinelle:
@r1 disable optional_qualifier @ identifier i; position p; @@ static struct snd_kcontrol_new i@p = {...};
@ok1@ identifier r1.i; position p; expression e1; @@ snd_ctl_new1(&i@p,e1)
@bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p
@depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct snd_kcontrol_new i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
/openbmc/linux/sound/pci/lola/ |
H A D | lola_mixer.c | diff f3b827e0b1841f4cfc18436e09f4f269f3be908e Sun Feb 19 12:48:09 CST 2017 Bhumika Goyal <bhumirks@gmail.com> ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having the same property can be made const too. Done using Coccinelle:
@r1 disable optional_qualifier @ identifier i; position p; @@ static struct snd_kcontrol_new i@p = {...};
@ok1@ identifier r1.i; position p; expression e1; @@ snd_ctl_new1(&i@p,e1)
@bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p
@depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct snd_kcontrol_new i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
/openbmc/linux/sound/pci/au88x0/ |
H A D | au88x0_a3d.c | diff f3b827e0b1841f4cfc18436e09f4f269f3be908e Sun Feb 19 12:48:09 CST 2017 Bhumika Goyal <bhumirks@gmail.com> ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having the same property can be made const too. Done using Coccinelle:
@r1 disable optional_qualifier @ identifier i; position p; @@ static struct snd_kcontrol_new i@p = {...};
@ok1@ identifier r1.i; position p; expression e1; @@ snd_ctl_new1(&i@p,e1)
@bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p
@depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct snd_kcontrol_new i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
H A D | au88x0_eq.c | diff f3b827e0b1841f4cfc18436e09f4f269f3be908e Sun Feb 19 12:48:09 CST 2017 Bhumika Goyal <bhumirks@gmail.com> ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having the same property can be made const too. Done using Coccinelle:
@r1 disable optional_qualifier @ identifier i; position p; @@ static struct snd_kcontrol_new i@p = {...};
@ok1@ identifier r1.i; position p; expression e1; @@ snd_ctl_new1(&i@p,e1)
@bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p
@depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct snd_kcontrol_new i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
H A D | au88x0_pcm.c | diff f3b827e0b1841f4cfc18436e09f4f269f3be908e Sun Feb 19 12:48:09 CST 2017 Bhumika Goyal <bhumirks@gmail.com> ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having the same property can be made const too. Done using Coccinelle:
@r1 disable optional_qualifier @ identifier i; position p; @@ static struct snd_kcontrol_new i@p = {...};
@ok1@ identifier r1.i; position p; expression e1; @@ snd_ctl_new1(&i@p,e1)
@bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p
@depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct snd_kcontrol_new i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
/openbmc/linux/sound/pci/mixart/ |
H A D | mixart_mixer.c | diff f3b827e0b1841f4cfc18436e09f4f269f3be908e Sun Feb 19 12:48:09 CST 2017 Bhumika Goyal <bhumirks@gmail.com> ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having the same property can be made const too. Done using Coccinelle:
@r1 disable optional_qualifier @ identifier i; position p; @@ static struct snd_kcontrol_new i@p = {...};
@ok1@ identifier r1.i; position p; expression e1; @@ snd_ctl_new1(&i@p,e1)
@bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p
@depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct snd_kcontrol_new i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
/openbmc/linux/sound/pci/ice1712/ |
H A D | ews.c | diff f3b827e0b1841f4cfc18436e09f4f269f3be908e Sun Feb 19 12:48:09 CST 2017 Bhumika Goyal <bhumirks@gmail.com> ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having the same property can be made const too. Done using Coccinelle:
@r1 disable optional_qualifier @ identifier i; position p; @@ static struct snd_kcontrol_new i@p = {...};
@ok1@ identifier r1.i; position p; expression e1; @@ snd_ctl_new1(&i@p,e1)
@bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p
@depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct snd_kcontrol_new i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
H A D | delta.c | diff f3b827e0b1841f4cfc18436e09f4f269f3be908e Sun Feb 19 12:48:09 CST 2017 Bhumika Goyal <bhumirks@gmail.com> ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having the same property can be made const too. Done using Coccinelle:
@r1 disable optional_qualifier @ identifier i; position p; @@ static struct snd_kcontrol_new i@p = {...};
@ok1@ identifier r1.i; position p; expression e1; @@ snd_ctl_new1(&i@p,e1)
@bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p
@depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct snd_kcontrol_new i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
H A D | ice1712.c | diff f3b827e0b1841f4cfc18436e09f4f269f3be908e Sun Feb 19 12:48:09 CST 2017 Bhumika Goyal <bhumirks@gmail.com> ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having the same property can be made const too. Done using Coccinelle:
@r1 disable optional_qualifier @ identifier i; position p; @@ static struct snd_kcontrol_new i@p = {...};
@ok1@ identifier r1.i; position p; expression e1; @@ snd_ctl_new1(&i@p,e1)
@bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p
@depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct snd_kcontrol_new i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
H A D | ice1724.c | diff f3b827e0b1841f4cfc18436e09f4f269f3be908e Sun Feb 19 12:48:09 CST 2017 Bhumika Goyal <bhumirks@gmail.com> ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having the same property can be made const too. Done using Coccinelle:
@r1 disable optional_qualifier @ identifier i; position p; @@ static struct snd_kcontrol_new i@p = {...};
@ok1@ identifier r1.i; position p; expression e1; @@ snd_ctl_new1(&i@p,e1)
@bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p
@depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct snd_kcontrol_new i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
/openbmc/linux/sound/pci/vx222/ |
H A D | vx222_ops.c | diff f3b827e0b1841f4cfc18436e09f4f269f3be908e Sun Feb 19 12:48:09 CST 2017 Bhumika Goyal <bhumirks@gmail.com> ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having the same property can be made const too. Done using Coccinelle:
@r1 disable optional_qualifier @ identifier i; position p; @@ static struct snd_kcontrol_new i@p = {...};
@ok1@ identifier r1.i; position p; expression e1; @@ snd_ctl_new1(&i@p,e1)
@bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p
@depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct snd_kcontrol_new i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
/openbmc/linux/sound/pci/ca0106/ |
H A D | ca0106_mixer.c | diff f3b827e0b1841f4cfc18436e09f4f269f3be908e Sun Feb 19 12:48:09 CST 2017 Bhumika Goyal <bhumirks@gmail.com> ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having the same property can be made const too. Done using Coccinelle:
@r1 disable optional_qualifier @ identifier i; position p; @@ static struct snd_kcontrol_new i@p = {...};
@ok1@ identifier r1.i; position p; expression e1; @@ snd_ctl_new1(&i@p,e1)
@bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p
@depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct snd_kcontrol_new i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
/openbmc/linux/sound/pci/emu10k1/ |
H A D | emumixer.c | diff f3b827e0b1841f4cfc18436e09f4f269f3be908e Sun Feb 19 12:48:09 CST 2017 Bhumika Goyal <bhumirks@gmail.com> ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having the same property can be made const too. Done using Coccinelle:
@r1 disable optional_qualifier @ identifier i; position p; @@ static struct snd_kcontrol_new i@p = {...};
@ok1@ identifier r1.i; position p; expression e1; @@ snd_ctl_new1(&i@p,e1)
@bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p
@depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct snd_kcontrol_new i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
H A D | emupcm.c | diff f3b827e0b1841f4cfc18436e09f4f269f3be908e Sun Feb 19 12:48:09 CST 2017 Bhumika Goyal <bhumirks@gmail.com> ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having the same property can be made const too. Done using Coccinelle:
@r1 disable optional_qualifier @ identifier i; position p; @@ static struct snd_kcontrol_new i@p = {...};
@ok1@ identifier r1.i; position p; expression e1; @@ snd_ctl_new1(&i@p,e1)
@bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p
@depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct snd_kcontrol_new i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
H A D | emu10k1x.c | diff f3b827e0b1841f4cfc18436e09f4f269f3be908e Sun Feb 19 12:48:09 CST 2017 Bhumika Goyal <bhumirks@gmail.com> ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having the same property can be made const too. Done using Coccinelle:
@r1 disable optional_qualifier @ identifier i; position p; @@ static struct snd_kcontrol_new i@p = {...};
@ok1@ identifier r1.i; position p; expression e1; @@ snd_ctl_new1(&i@p,e1)
@bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p
@depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct snd_kcontrol_new i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
/openbmc/linux/sound/pci/aw2/ |
H A D | aw2-alsa.c | diff f3b827e0b1841f4cfc18436e09f4f269f3be908e Sun Feb 19 12:48:09 CST 2017 Bhumika Goyal <bhumirks@gmail.com> ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having the same property can be made const too. Done using Coccinelle:
@r1 disable optional_qualifier @ identifier i; position p; @@ static struct snd_kcontrol_new i@p = {...};
@ok1@ identifier r1.i; position p; expression e1; @@ snd_ctl_new1(&i@p,e1)
@bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p
@depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct snd_kcontrol_new i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
/openbmc/linux/sound/pci/lx6464es/ |
H A D | lx6464es.c | diff f3b827e0b1841f4cfc18436e09f4f269f3be908e Sun Feb 19 12:48:09 CST 2017 Bhumika Goyal <bhumirks@gmail.com> ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having the same property can be made const too. Done using Coccinelle:
@r1 disable optional_qualifier @ identifier i; position p; @@ static struct snd_kcontrol_new i@p = {...};
@ok1@ identifier r1.i; position p; expression e1; @@ snd_ctl_new1(&i@p,e1)
@bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p
@depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct snd_kcontrol_new i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
/openbmc/linux/sound/pci/trident/ |
H A D | trident_main.c | diff f3b827e0b1841f4cfc18436e09f4f269f3be908e Sun Feb 19 12:48:09 CST 2017 Bhumika Goyal <bhumirks@gmail.com> ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having the same property can be made const too. Done using Coccinelle:
@r1 disable optional_qualifier @ identifier i; position p; @@ static struct snd_kcontrol_new i@p = {...};
@ok1@ identifier r1.i; position p; expression e1; @@ snd_ctl_new1(&i@p,e1)
@bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p
@depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct snd_kcontrol_new i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
/openbmc/linux/sound/pci/ |
H A D | cs4281.c | diff f3b827e0b1841f4cfc18436e09f4f269f3be908e Sun Feb 19 12:48:09 CST 2017 Bhumika Goyal <bhumirks@gmail.com> ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having the same property can be made const too. Done using Coccinelle:
@r1 disable optional_qualifier @ identifier i; position p; @@ static struct snd_kcontrol_new i@p = {...};
@ok1@ identifier r1.i; position p; expression e1; @@ snd_ctl_new1(&i@p,e1)
@bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p
@depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct snd_kcontrol_new i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
H A D | bt87x.c | diff f3b827e0b1841f4cfc18436e09f4f269f3be908e Sun Feb 19 12:48:09 CST 2017 Bhumika Goyal <bhumirks@gmail.com> ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having the same property can be made const too. Done using Coccinelle:
@r1 disable optional_qualifier @ identifier i; position p; @@ static struct snd_kcontrol_new i@p = {...};
@ok1@ identifier r1.i; position p; expression e1; @@ snd_ctl_new1(&i@p,e1)
@bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p
@depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct snd_kcontrol_new i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
H A D | cmipci.c | diff f3b827e0b1841f4cfc18436e09f4f269f3be908e Sun Feb 19 12:48:09 CST 2017 Bhumika Goyal <bhumirks@gmail.com> ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having the same property can be made const too. Done using Coccinelle:
@r1 disable optional_qualifier @ identifier i; position p; @@ static struct snd_kcontrol_new i@p = {...};
@ok1@ identifier r1.i; position p; expression e1; @@ snd_ctl_new1(&i@p,e1)
@bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p
@depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct snd_kcontrol_new i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
H A D | ens1370.c | diff f3b827e0b1841f4cfc18436e09f4f269f3be908e Sun Feb 19 12:48:09 CST 2017 Bhumika Goyal <bhumirks@gmail.com> ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having the same property can be made const too. Done using Coccinelle:
@r1 disable optional_qualifier @ identifier i; position p; @@ static struct snd_kcontrol_new i@p = {...};
@ok1@ identifier r1.i; position p; expression e1; @@ snd_ctl_new1(&i@p,e1)
@bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p
@depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct snd_kcontrol_new i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
/openbmc/linux/sound/pci/ymfpci/ |
H A D | ymfpci_main.c | diff f3b827e0b1841f4cfc18436e09f4f269f3be908e Sun Feb 19 12:48:09 CST 2017 Bhumika Goyal <bhumirks@gmail.com> ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having the same property can be made const too. Done using Coccinelle:
@r1 disable optional_qualifier @ identifier i; position p; @@ static struct snd_kcontrol_new i@p = {...};
@ok1@ identifier r1.i; position p; expression e1; @@ snd_ctl_new1(&i@p,e1)
@bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p
@depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct snd_kcontrol_new i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
/openbmc/linux/sound/pci/echoaudio/ |
H A D | echoaudio.c | diff f3b827e0b1841f4cfc18436e09f4f269f3be908e Sun Feb 19 12:48:09 CST 2017 Bhumika Goyal <bhumirks@gmail.com> ALSA: pci: constify snd_kcontrol_new structures
Declare snd_kcontrol_new structures as const as they are only passed as an argument to the function snd_ctl_new1. This argument is of type const, so snd_kcontrol_new structures having the same property can be made const too. Done using Coccinelle:
@r1 disable optional_qualifier @ identifier i; position p; @@ static struct snd_kcontrol_new i@p = {...};
@ok1@ identifier r1.i; position p; expression e1; @@ snd_ctl_new1(&i@p,e1)
@bad@ position p!={r1.p,ok1.p}; identifier r1.i; @@ i@p
@depends on !bad disable optional_qualifier@ identifier r1.i; @@ +const struct snd_kcontrol_new i;
Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
|