linux_old1/sound/pci/lx6464es
Bhumika Goyal f3b827e0b1 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>
2017-02-21 22:01:21 +01:00
..
Makefile ALSA: lx6464es - driver for the digigram lx6464es interface 2009-04-14 12:01:46 +02:00
lx6464es.c ALSA: pci: constify snd_kcontrol_new structures 2017-02-21 22:01:21 +01:00
lx6464es.h ALSA: lx6464es: Use nonatomic PCM ops 2014-09-15 15:52:10 +02:00
lx_core.c ALSA: lx646es: Fix possible uninitialized variable reference 2016-04-15 15:28:52 +02:00
lx_core.h ALSA: lx6464es: Use nonatomic PCM ops 2014-09-15 15:52:10 +02:00
lx_defs.h ALSA: Fix invalid kerneldoc markers 2014-11-11 09:39:17 +01:00