linux-stable/drivers/media
Gustavo A. R. Silva 62c11a541a media: atmel-isc: constify vb2_ops structure
Check for vb2_ops structures that are only stored in the ops field of a
vb2_queue structure. That field is declared const, so vb2_ops structures
that have this property can be declared as const also.

This issue was detected using Coccinelle and the following semantic patch:

@r disable optional_qualifier@
identifier i;
position p;
@@
static struct vb2_ops i@p = { ... };

@ok@
identifier r.i;
struct vb2_queue e;
position p;
@@
e.ops = &i@p;

@bad@
position p != {r.p,ok.p};
identifier r.i;
struct vb2_ops e;
@@
e@i@p

@depends on !bad disable optional_qualifier@
identifier r.i;
@@
static
+const
struct vb2_ops i = { ... };

Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-07-19 15:08:07 -04:00
..
cec media: cec: drop senseless message 2017-07-18 13:00:26 -03:00
common [media] b2c2: constify nxt200x_config structure 2017-04-17 12:18:18 -03:00
dvb-core Linux v4.13-rc1 2017-07-17 11:17:36 -03:00
dvb-frontends media: dvb-frontends/stv0367: Improve DVB-C/T frontend status 2017-06-25 10:48:45 -03:00
firewire
i2c media: media/i2c/saa717x: fix spelling mistake: "implementd" -> "implemented" 2017-07-19 15:00:57 -04:00
mmc
pci media: cx23885: add const to v4l2_file_operations structure 2017-07-19 14:56:41 -04:00
platform media: atmel-isc: constify vb2_ops structure 2017-07-19 15:08:07 -04:00
radio Linux v4.13-rc1 2017-07-17 11:17:36 -03:00
rc [media] rc-core: cleanup rc_register_device pt2 2017-06-13 13:55:01 -03:00
spi
tuners media: tuners: remove unnecessary static in simple_dvb_configure() 2017-07-19 15:02:27 -04:00
usb media: pulse8-cec/rainshadow-cec: make adapter name unique 2017-07-18 13:00:52 -03:00
v4l2-core media: vb2 dma-sg: Constify dma_buf_ops structures 2017-07-19 14:59:24 -04:00
Kconfig media: cec-pin: add low-level pin hardware support 2017-07-18 12:57:18 -03:00
Makefile [media] cec: select CEC_CORE instead of depend on it 2017-06-04 15:23:33 -03:00
media-device.c [media] media: Rename graph and pipeline structs and functions 2017-01-27 16:13:24 -02:00
media-devnode.c media: utilize new cdev_device_add helper function 2017-03-21 06:44:33 +01:00
media-entity.c [media] media: entity: Catch unbalanced media_pipeline_stop calls 2017-06-23 09:23:36 -03:00