linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Bhumika Goyal <bhumirks@gmail.com>
To: julia.lawall@lip6.fr, crope@iki.fi, mchehab@kernel.org,
	hans.verkuil@cisco.com, isely@pobox.com,
	ezequiel@vanguardiasur.com.ar, royale@zerezo.com,
	linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-usb@vger.kernel.org
Cc: Bhumika Goyal <bhumirks@gmail.com>
Subject: [PATCH 02/11] [media] stkwebcam:  make video_device const
Date: Sat, 26 Aug 2017 14:05:06 +0530	[thread overview]
Message-ID: <1503736515-15366-3-git-send-email-bhumirks@gmail.com> (raw)
In-Reply-To: <1503736515-15366-1-git-send-email-bhumirks@gmail.com>

Make this const as it is only used in a copy operation.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.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

  parent reply	other threads:[~2017-08-26  8:35 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-08-26  8:35 [PATCH 00/11] [media]: make video_device const Bhumika Goyal
2017-08-26  8:35 ` [PATCH 01/11] [media] zr364xx: " Bhumika Goyal
2017-08-26  8:35 ` Bhumika Goyal [this message]
2017-08-26  8:35 ` [PATCH 03/11] [media] stk1160: " Bhumika Goyal
2017-08-26  8:35 ` [PATCH 04/11] [media] s2255drv: " Bhumika Goyal
2017-08-26  8:35 ` [PATCH 05/11] [media] pwc: " Bhumika Goyal
2017-08-26  8:35 ` [PATCH 06/11] [media] pvrusb2: " Bhumika Goyal
2017-08-26  8:35 ` [PATCH 07/11] [media] msi2500: " Bhumika Goyal
2017-08-26  8:35 ` [PATCH 08/11] [media] hackrf: " Bhumika Goyal
2017-08-26  8:35 ` [PATCH 09/11] [media] go7007: " Bhumika Goyal
2017-08-26  8:35 ` [PATCH 10/11] [media] cpia2: " Bhumika Goyal
2017-08-26  8:35 ` [PATCH 11/11] [media] airspy: " Bhumika Goyal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1503736515-15366-3-git-send-email-bhumirks@gmail.com \
    --to=bhumirks@gmail.com \
    --cc=crope@iki.fi \
    --cc=ezequiel@vanguardiasur.com.ar \
    --cc=hans.verkuil@cisco.com \
    --cc=isely@pobox.com \
    --cc=julia.lawall@lip6.fr \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-usb@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=royale@zerezo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).