summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/pwc
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-26 09:11:30 -0400
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-08-27 08:45:32 -0400
commit868449422081f8f4b5d2969709c0aa9021184167 (patch)
treeb3177a39b4ad6cd62ee4c8106907778943d5e63e /drivers/media/usb/pwc
parent507e190946297c34a27d9366b0661d5e506fdd03 (diff)
downloadblackbird-op-linux-868449422081f8f4b5d2969709c0aa9021184167.tar.gz
blackbird-op-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/pwc')
-rw-r--r--drivers/media/usb/pwc/pwc-if.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/usb/pwc/pwc-if.c b/drivers/media/usb/pwc/pwc-if.c
index 22420c14ac98..eb6921d2743e 100644
--- a/drivers/media/usb/pwc/pwc-if.c
+++ b/drivers/media/usb/pwc/pwc-if.c
@@ -146,7 +146,7 @@ static const struct v4l2_file_operations pwc_fops = {
.mmap = vb2_fop_mmap,
.unlocked_ioctl = video_ioctl2,
};
-static struct video_device pwc_template = {
+static const struct video_device pwc_template = {
.name = "Philips Webcam", /* Filled in later */
.release = video_device_release_empty,
.fops = &pwc_fops,
OpenPOWER on IntegriCloud