diff options
| author | Bhumika Goyal <[email protected]> | 2017-01-21 09:45:31 +0000 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2017-02-03 16:23:39 +0000 |
| commit | dd93e79c602c8219c0b69b0667601ed363b4191a (patch) | |
| tree | a0109097f750b3d29c1d7a3e6078138757d19c6d /drivers/media/v4l2-core/v4l2-async.c | |
| parent | [media] media: pci: constify vb2_ops structure (diff) | |
| download | kernel-dd93e79c602c8219c0b69b0667601ed363b4191a.tar.gz kernel-dd93e79c602c8219c0b69b0667601ed363b4191a.zip | |
[media] media: dvb-frontends: constify vb2_ops structure
Declare vb2_ops structure as const as it is only stored in
the ops field of a vb2_queue structure. This field is of type
const, so vb2_ops structures having same properties can be made
const too.
Done using Coccinelle:
@r1 disable optional_qualifier@
identifier i;
position p;
@@
static struct vb2_ops i@p={...};
@ok1@
identifier r1.i;
position p;
struct sta2x11_vip vip;
struct vb2_queue q;
@@
(
vip.vb_vidq.ops=&i@p
|
q.ops=&i@p
)
@bad@
position p!={r1.p,ok1.p};
identifier r1.i;
@@
i@p
@depends on !bad disable optional_qualifier@
identifier r1.i;
@@
+const
struct vb2_ops i;
File size details of media/dvb-frontends/rtl2832_sdr.o file remains the
same before and after applying the patch.
Signed-off-by: Bhumika Goyal <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'drivers/media/v4l2-core/v4l2-async.c')
0 files changed, 0 insertions, 0 deletions
