linux_dsm_epyc7002/drivers/media/usb/au0828
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
..
au0828-cards.c [media] tveeprom: get rid of unused arg on tveeprom_hauppauge_analog() 2017-03-03 07:35:02 -03:00
au0828-cards.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
au0828-core.c media: au0828: fix unbalanced lock/unlock in au0828_usb_probe 2017-08-27 06:57:33 -04:00
au0828-dvb.c [media] au0828: Add timer to restart TS stream if no data arrives on bulk endpoint 2017-06-06 07:52:20 -03:00
au0828-i2c.c media: usb: make i2c_client const 2017-09-23 08:27:42 -04:00
au0828-input.c media: rc: rename RC_TYPE_* to RC_PROTO_* and RC_BIT_* to RC_PROTO_BIT_* 2017-08-20 10:02:48 -04:00
au0828-reg.h [media] media: Drop FSF's postal address from the source code files 2017-01-27 11:38:09 -02:00
au0828-vbi.c [media] vb2: replace void *alloc_ctxs by struct device *alloc_devs 2016-07-08 14:45:07 -03:00
au0828-video.c media: : usb: add const to v4l2_file_operations structures 2017-07-20 16:45:25 -04:00
au0828.h [media] au0828: Add timer to restart TS stream if no data arrives on bulk endpoint 2017-06-06 07:52:20 -03:00
Kconfig media: au0828: fix RC_CORE dependency 2017-08-27 08:35:35 -04:00
Makefile [media] au0828: add support for IR on HVR-950Q 2014-07-30 15:51:43 -03:00