diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-08-26 09:11:30 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-27 08:45:32 -0400 |
commit | 868449422081f8f4b5d2969709c0aa9021184167 (patch) | |
tree | b3177a39b4ad6cd62ee4c8106907778943d5e63e /drivers/media/usb/stkwebcam | |
parent | 507e190946297c34a27d9366b0661d5e506fdd03 (diff) | |
download | talos-obmc-linux-868449422081f8f4b5d2969709c0aa9021184167.tar.gz talos-obmc-linux-868449422081f8f4b5d2969709c0aa9021184167.zip |
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>
Diffstat (limited to 'drivers/media/usb/stkwebcam')
-rw-r--r-- | drivers/media/usb/stkwebcam/stk-webcam.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/stkwebcam/stk-webcam.c b/drivers/media/usb/stkwebcam/stk-webcam.c index 39abb58c65dd..c0bba773db25 100644 --- a/drivers/media/usb/stkwebcam/stk-webcam.c +++ b/drivers/media/usb/stkwebcam/stk-webcam.c @@ -1244,7 +1244,7 @@ static void stk_v4l_dev_release(struct video_device *vd) kfree(dev); } -static struct video_device stk_v4l_data = { +static const struct video_device stk_v4l_data = { .name = "stkwebcam", .fops = &v4l_stk_fops, .ioctl_ops = &v4l_stk_ioctl_ops, |