media: cx231xx: make cx231xx_vbi_qops const
authorBhumika Goyal <bhumirks@gmail.com>
Wed, 27 Sep 2017 08:05:43 +0000 (04:05 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 31 Oct 2017 10:37:49 +0000 (06:37 -0400)
Make this const as it is only passed to the const argument of the
function videobuf_queue_vmalloc_init in the file referencing it.
Also, make the declaration in the header const.

Structure found using Coccienlle and changes done by hand.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/usb/cx231xx/cx231xx-vbi.c
drivers/media/usb/cx231xx/cx231xx-vbi.h

index 76e901920f6f9b9cf5805d822f9917c2b3e58e43..330b86e4e38fbb3213f3ddca1f58001a2dc4e9fc 100644 (file)
@@ -285,7 +285,7 @@ static void vbi_buffer_release(struct videobuf_queue *vq,
        free_buffer(vq, buf);
 }
 
-struct videobuf_queue_ops cx231xx_vbi_qops = {
+const struct videobuf_queue_ops cx231xx_vbi_qops = {
        .buf_setup   = vbi_buffer_setup,
        .buf_prepare = vbi_buffer_prepare,
        .buf_queue   = vbi_buffer_queue,
index 16c7d20a22a4a79b6107f4e9245e3fb67b6fb5ed..b33d2bdb621c92aced8c8139ba9890bc7eb07121 100644 (file)
@@ -22,7 +22,7 @@
 #ifndef _CX231XX_VBI_H
 #define _CX231XX_VBI_H
 
-extern struct videobuf_queue_ops cx231xx_vbi_qops;
+extern const struct videobuf_queue_ops cx231xx_vbi_qops;
 
 #define   NTSC_VBI_START_LINE 10       /* line 10 - 21 */
 #define   NTSC_VBI_END_LINE   21