[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1503736515-15366-3-git-send-email-bhumirks@gmail.com>
Date: Sat, 26 Aug 2017 14:05:06 +0530
From: Bhumika Goyal <bhumirks@...il.com>
To: julia.lawall@...6.fr, crope@....fi, mchehab@...nel.org,
hans.verkuil@...co.com, isely@...ox.com,
ezequiel@...guardiasur.com.ar, royale@...ezo.com,
linux-media@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-usb@...r.kernel.org
Cc: Bhumika Goyal <bhumirks@...il.com>
Subject: [PATCH 02/11] [media] stkwebcam: make video_device const
Make this const as it is only used in a copy operation.
Signed-off-by: Bhumika Goyal <bhumirks@...il.com>
---
drivers/media/usb/stkwebcam/stk-webcam.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/usb/stkwebcam/stk-webcam.c b/drivers/media/usb/stkwebcam/stk-webcam.c
index 39abb58..c0bba77 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,
--
1.9.1
Powered by blists - more mailing lists