media: usb: make video_device const
Make these const as they are only used during a copy operation. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Acked-by: Mike Isely <isely@pobox.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Cette révision appartient à :

révisé par
Mauro Carvalho Chehab

Parent
507e190946
révision
8684494220
@@ -1075,7 +1075,7 @@ static const struct v4l2_file_operations cpia2_fops = {
|
||||
.mmap = cpia2_mmap,
|
||||
};
|
||||
|
||||
static struct video_device cpia2_template = {
|
||||
static const struct video_device cpia2_template = {
|
||||
/* I could not find any place for the old .initialize initializer?? */
|
||||
.name = "CPiA2 Camera",
|
||||
.fops = &cpia2_fops,
|
||||
|
Référencer dans un nouveau ticket
Bloquer un utilisateur