[media] v4l2: add const to argument of write-only s_register ioctl
This ioctl is defined as IOW, so pass the argument as const. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
b5656e8b73
commit
977ba3b1b7
@@ -1313,7 +1313,7 @@ static int saa7164_g_register(struct file *file, void *fh,
|
||||
}
|
||||
|
||||
static int saa7164_s_register(struct file *file, void *fh,
|
||||
struct v4l2_dbg_register *reg)
|
||||
const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct saa7164_port *port = ((struct saa7164_encoder_fh *)fh)->port;
|
||||
struct saa7164_dev *dev = port->dev;
|
||||
|
Reference in New Issue
Block a user