linux/drivers/media/usb/cx231xx
Julia Lawall 22511cfa7d [media] usb: constify snd_pcm_ops structures
Check for snd_pcm_ops structures that are only stored in the ops field of a
snd_soc_platform_driver structure or passed as the third argument to
snd_pcm_set_ops.  The corresponding field or parameter is declared const,
so snd_pcm_ops structures that have this property can be declared as const
also.

The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@r disable optional_qualifier@
identifier i;
position p;
@@
static struct snd_pcm_ops i@p = { ... };

@ok1@
identifier r.i;
struct snd_soc_platform_driver e;
position p;
@@
e.ops = &i@p;

@ok2@
identifier r.i;
expression e1, e2;
position p;
@@
snd_pcm_set_ops(e1, e2, &i@p)

@bad@
position p != {r.p,ok1.p,ok2.p};
identifier r.i;
struct snd_pcm_ops e;
@@
e@i@p

@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
 struct snd_pcm_ops i = { ... };
// </smpl>

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2016-09-19 16:19:10 -03:00
..
Kconfig [media] cx231xx: Hauppauge HVR-955Q ATSC/QAM tuner 2015-03-03 10:36:12 -03:00
Makefile
cx231xx-417.c [media] cx231xx: use v4l2_s_ctrl instead of the s_ctrl op 2016-07-12 11:14:27 -03:00
cx231xx-audio.c [media] usb: constify snd_pcm_ops structures 2016-09-19 16:19:10 -03:00
cx231xx-avcore.c [media] cx231xx: don't return error on success 2016-09-05 15:26:30 -03:00
cx231xx-cards.c [media] cx231xx-cards: unregister IR earlier 2016-09-05 15:26:36 -03:00
cx231xx-conf-reg.h
cx231xx-core.c [media] cx231xx: can't proceed if I2C bus register fails 2016-09-05 15:26:35 -03:00
cx231xx-dif.h
cx231xx-dvb.c [media] cx231xx: create connectors at the media graph 2016-02-16 08:55:26 -02:00
cx231xx-i2c.c [media] cx231xx-i2c: handle errors with cx231xx_get_i2c_adap() 2016-09-05 15:26:34 -03:00
cx231xx-input.c [media] cx231xx: Improve the log message 2014-11-03 15:59:59 -02:00
cx231xx-pcb-cfg.c [media] cx231xx: Improve the log message 2014-11-03 15:59:59 -02:00
cx231xx-pcb-cfg.h [media] cx231xx: return an error if it can't read PCB config 2014-07-27 16:57:43 -03:00
cx231xx-reg.h
cx231xx-vbi.c [media] media: usb: cx231xx: cx231xx-vbi: don't print error when allocating urb fails 2016-08-24 08:49:55 -03:00
cx231xx-vbi.h
cx231xx-video.c [media] cx231xx: get rid of CX231XX_VMUX_DEBUG 2016-02-16 08:57:41 -02:00
cx231xx.h [media] cx231xx: convert to use an explicit i2c mux core 2016-04-22 15:00:17 +02:00