linux/drivers/media/usb
Bhumika Goyal 2b83247f3e media: usb: make i2c_client const
Make these const as they are only used in a copy operation.
Done using Coccinelle.

@match disable optional_qualifier@
identifier s;
@@
static struct i2c_client s = {...};

@ref@
position p;
identifier match.s;
@@
s@p

@good1@
position ref.p;
identifier match.s,f,c;
expression e;
@@
(
e = s@p
|
e = s@p.f
|
c(...,s@p.f,...)
|
c(...,s@p,...)
)

@bad depends on  !good1@
position ref.p;
identifier match.s;
@@
s@p

@depends on forall !bad disable optional_qualifier@
identifier match.s;
@@
static
+ const
struct i2c_client s;

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-09-23 08:27:42 -04:00
..
airspy media: usb: make video_device const 2017-08-27 08:45:32 -04:00
as102 media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
au0828 media: usb: make i2c_client const 2017-09-23 08:27:42 -04:00
b2c2 media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
cpia2 media: usb: make video_device const 2017-08-27 08:45:32 -04:00
cx231xx media: cx231xx: fix use-after-free when unregistering the i2c_client for the dvb demod 2017-08-27 06:33:47 -04:00
dvb-usb media: dw2102: make dvb_usb_device_description structures const 2017-08-27 18:08:55 -04:00
dvb-usb-v2 media: mxl111sf: Fix potential null pointer dereference 2017-08-27 06:58:19 -04:00
em28xx media: usb: make i2c_client const 2017-09-23 08:27:42 -04:00
go7007 media: usb: make video_device const 2017-08-27 08:45:32 -04:00
gspca media: : usb: add const to v4l2_file_operations structures 2017-07-20 16:45:25 -04:00
hackrf media: usb: make video_device const 2017-08-27 08:45:32 -04:00
hdpvr media: usb: make i2c_adapter const 2017-08-26 08:41:58 -04:00
msi2500 media: usb: make video_device const 2017-08-27 08:45:32 -04:00
pulse8-cec media: usb: pulse8-cec: constify serio_device_id 2017-08-20 08:27:13 -04:00
pvrusb2 media: usb: make video_device const 2017-08-27 08:45:32 -04:00
pwc media: usb: make video_device const 2017-08-27 08:45:32 -04:00
rainshadow-cec media: usb: rainshadow-cec: constify serio_device_id 2017-08-20 08:27:29 -04:00
s2255 media: usb: make video_device const 2017-08-27 08:45:32 -04:00
siano [media] siano: make it work again with CONFIG_VMAP_STACK 2017-02-14 18:13:49 -02:00
stk1160 media: usb: make i2c_client const 2017-09-23 08:27:42 -04:00
stkwebcam media: usb: make video_device const 2017-08-27 08:45:32 -04:00
tm6000 media: rc: rename RC_TYPE_* to RC_PROTO_* and RC_BIT_* to RC_PROTO_BIT_* 2017-08-20 10:02:48 -04:00
ttusb-budget media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
ttusb-dec media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
usbtv media: usbtv: make v4l2_file_operations const 2017-08-27 08:46:05 -04:00
usbvision media: usbvision: Improve a size determination in usbvision_alloc() 2017-08-27 08:48:47 -04:00
uvc media: uvcvideo: Constify video_subdev structures 2017-08-20 08:10:24 -04:00
zr364xx media: drivers: Adjust checks for null pointers 2017-09-23 08:20:57 -04:00
Kconfig [media] rainshadow-cec: new RainShadow Tech HDMI CEC driver 2017-04-10 12:42:10 -03:00
Makefile [media] rainshadow-cec: new RainShadow Tech HDMI CEC driver 2017-04-10 12:42:10 -03:00