forked from Minki/linux
media: au0828/em28xx: make vb2_ops const
Make vb2_ops const as they are only stored in the const field of a vb2_queue structure. Make the declarations const too. Done using Coccinelle. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
This commit is contained in:
parent
0e2d9a9d4a
commit
ac71484e89
@ -79,7 +79,7 @@ vbi_buffer_queue(struct vb2_buffer *vb)
|
||||
spin_unlock_irqrestore(&dev->slock, flags);
|
||||
}
|
||||
|
||||
struct vb2_ops au0828_vbi_qops = {
|
||||
const struct vb2_ops au0828_vbi_qops = {
|
||||
.queue_setup = vbi_queue_setup,
|
||||
.buf_prepare = vbi_buffer_prepare,
|
||||
.buf_queue = vbi_buffer_queue,
|
||||
|
@ -358,7 +358,7 @@ void au0828_dvb_suspend(struct au0828_dev *dev);
|
||||
void au0828_dvb_resume(struct au0828_dev *dev);
|
||||
|
||||
/* au0828-vbi.c */
|
||||
extern struct vb2_ops au0828_vbi_qops;
|
||||
extern const struct vb2_ops au0828_vbi_qops;
|
||||
|
||||
#define dprintk(level, fmt, arg...)\
|
||||
do { if (au0828_debug & level)\
|
||||
|
@ -16,4 +16,4 @@
|
||||
|
||||
int em28xx_start_analog_streaming(struct vb2_queue *vq, unsigned int count);
|
||||
void em28xx_stop_vbi_streaming(struct vb2_queue *vq);
|
||||
extern struct vb2_ops em28xx_vbi_qops;
|
||||
extern const struct vb2_ops em28xx_vbi_qops;
|
||||
|
@ -93,7 +93,7 @@ vbi_buffer_queue(struct vb2_buffer *vb)
|
||||
spin_unlock_irqrestore(&dev->slock, flags);
|
||||
}
|
||||
|
||||
struct vb2_ops em28xx_vbi_qops = {
|
||||
const struct vb2_ops em28xx_vbi_qops = {
|
||||
.queue_setup = vbi_queue_setup,
|
||||
.buf_prepare = vbi_buffer_prepare,
|
||||
.buf_queue = vbi_buffer_queue,
|
||||
|
Loading…
Reference in New Issue
Block a user