linux/drivers/media/usb/stk1160
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
..
Kconfig [media] media: stk1160: Add Kconfig help on snd-usb-audio requirement 2017-04-18 12:15:45 -03:00
Makefile [media] stk1160: Remove stk1160-mixer and setup internal AC97 codec automatically 2017-02-03 11:25:51 -02:00
stk1160-ac97.c [media] stk1160: make some functions static 2017-02-03 11:30:37 -02:00
stk1160-core.c media: usb: constify usb_device_id 2017-08-20 08:04:51 -04:00
stk1160-i2c.c media: usb: make i2c_client const 2017-09-23 08:27:42 -04:00
stk1160-reg.h [media] stk1160: Wait for completion of transfers to and from AC97 codec 2017-02-03 11:29:24 -02:00
stk1160-v4l.c media: usb: make video_device const 2017-08-27 08:45:32 -04:00
stk1160-video.c [media] media: usb: stk1160: stk1160-video: don't print error when allocating urb fails 2016-08-24 09:26:01 -03:00
stk1160.h [media] stk1160: Wait for completion of transfers to and from AC97 codec 2017-02-03 11:29:24 -02:00