linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 00/11] [media]: make video_device const
@ 2017-08-26  8:35 Bhumika Goyal
  2017-08-26  8:35 ` [PATCH 01/11] [media] zr364xx: " Bhumika Goyal
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Bhumika Goyal @ 2017-08-26  8:35 UTC (permalink / raw)
  To: julia.lawall, crope, mchehab, hans.verkuil, isely, ezequiel,
	royale, linux-media, linux-kernel, linux-usb
  Cc: Bhumika Goyal

Make video_device const.

Bhumika Goyal (11):
  [media] zr364xx: make video_device const
  [media] stkwebcam:  make video_device const
  [media] stk1160: make video_device const
  [media] s2255drv:  make video_device const
  [media] pwc: make video_device const
  [media] pvrusb2: make video_device const
  [media] msi2500: make video_device const
  [media] hackrf:  make video_device const
  [media] go7007: make video_device const
  [media] cpia2: make video_device const
  [media] airspy: make video_device const

 drivers/media/usb/airspy/airspy.c        | 2 +-
 drivers/media/usb/cpia2/cpia2_v4l.c      | 2 +-
 drivers/media/usb/go7007/go7007-v4l2.c   | 2 +-
 drivers/media/usb/hackrf/hackrf.c        | 2 +-
 drivers/media/usb/msi2500/msi2500.c      | 2 +-
 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c | 2 +-
 drivers/media/usb/pwc/pwc-if.c           | 2 +-
 drivers/media/usb/s2255/s2255drv.c       | 2 +-
 drivers/media/usb/stk1160/stk1160-v4l.c  | 2 +-
 drivers/media/usb/stkwebcam/stk-webcam.c | 2 +-
 drivers/media/usb/zr364xx/zr364xx.c      | 2 +-
 11 files changed, 11 insertions(+), 11 deletions(-)

-- 
1.9.1

^ permalink raw reply	[flat|nested] 12+ messages in thread

* [PATCH 01/11] [media] zr364xx: make video_device const
  2017-08-26  8:35 [PATCH 00/11] [media]: make video_device const Bhumika Goyal
@ 2017-08-26  8:35 ` Bhumika Goyal
  2017-08-26  8:35 ` [PATCH 02/11] [media] stkwebcam: " Bhumika Goyal
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Bhumika Goyal @ 2017-08-26  8:35 UTC (permalink / raw)
  To: julia.lawall, crope, mchehab, hans.verkuil, isely, ezequiel,
	royale, linux-media, linux-kernel, linux-usb
  Cc: Bhumika Goyal

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

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/media/usb/zr364xx/zr364xx.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/usb/zr364xx/zr364xx.c b/drivers/media/usb/zr364xx/zr364xx.c
index d4bb56b..4ff8d0a 100644
--- a/drivers/media/usb/zr364xx/zr364xx.c
+++ b/drivers/media/usb/zr364xx/zr364xx.c
@@ -1335,7 +1335,7 @@ static unsigned int zr364xx_poll(struct file *file,
 	.vidioc_unsubscribe_event = v4l2_event_unsubscribe,
 };
 
-static struct video_device zr364xx_template = {
+static const struct video_device zr364xx_template = {
 	.name = DRIVER_DESC,
 	.fops = &zr364xx_fops,
 	.ioctl_ops = &zr364xx_ioctl_ops,
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 02/11] [media] stkwebcam:  make video_device const
  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
  2017-08-26  8:35 ` [PATCH 03/11] [media] stk1160: " Bhumika Goyal
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Bhumika Goyal @ 2017-08-26  8:35 UTC (permalink / raw)
  To: julia.lawall, crope, mchehab, hans.verkuil, isely, ezequiel,
	royale, linux-media, linux-kernel, linux-usb
  Cc: Bhumika Goyal

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

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 03/11] [media] stk1160: make video_device const
  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 ` [PATCH 02/11] [media] stkwebcam: " Bhumika Goyal
@ 2017-08-26  8:35 ` Bhumika Goyal
  2017-08-26  8:35 ` [PATCH 04/11] [media] s2255drv: " Bhumika Goyal
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Bhumika Goyal @ 2017-08-26  8:35 UTC (permalink / raw)
  To: julia.lawall, crope, mchehab, hans.verkuil, isely, ezequiel,
	royale, linux-media, linux-kernel, linux-usb
  Cc: Bhumika Goyal

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

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/media/usb/stk1160/stk1160-v4l.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/usb/stk1160/stk1160-v4l.c b/drivers/media/usb/stk1160/stk1160-v4l.c
index a132faa..77b759a 100644
--- a/drivers/media/usb/stk1160/stk1160-v4l.c
+++ b/drivers/media/usb/stk1160/stk1160-v4l.c
@@ -751,7 +751,7 @@ static void stop_streaming(struct vb2_queue *vq)
 	.wait_finish		= vb2_ops_wait_finish,
 };
 
-static struct video_device v4l_template = {
+static const struct video_device v4l_template = {
 	.name = "stk1160",
 	.tvnorms = V4L2_STD_525_60 | V4L2_STD_625_50,
 	.fops = &stk1160_fops,
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 04/11] [media] s2255drv:  make video_device const
  2017-08-26  8:35 [PATCH 00/11] [media]: make video_device const Bhumika Goyal
                   ` (2 preceding siblings ...)
  2017-08-26  8:35 ` [PATCH 03/11] [media] stk1160: " Bhumika Goyal
@ 2017-08-26  8:35 ` Bhumika Goyal
  2017-08-26  8:35 ` [PATCH 05/11] [media] pwc: " Bhumika Goyal
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Bhumika Goyal @ 2017-08-26  8:35 UTC (permalink / raw)
  To: julia.lawall, crope, mchehab, hans.verkuil, isely, ezequiel,
	royale, linux-media, linux-kernel, linux-usb
  Cc: Bhumika Goyal

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

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/media/usb/s2255/s2255drv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/usb/s2255/s2255drv.c b/drivers/media/usb/s2255/s2255drv.c
index 23f606e..b2f239c 100644
--- a/drivers/media/usb/s2255/s2255drv.c
+++ b/drivers/media/usb/s2255/s2255drv.c
@@ -1590,7 +1590,7 @@ static void s2255_video_device_release(struct video_device *vdev)
 	return;
 }
 
-static struct video_device template = {
+static const struct video_device template = {
 	.name = "s2255v",
 	.fops = &s2255_fops_v4l,
 	.ioctl_ops = &s2255_ioctl_ops,
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 05/11] [media] pwc: make video_device const
  2017-08-26  8:35 [PATCH 00/11] [media]: make video_device const Bhumika Goyal
                   ` (3 preceding siblings ...)
  2017-08-26  8:35 ` [PATCH 04/11] [media] s2255drv: " Bhumika Goyal
@ 2017-08-26  8:35 ` Bhumika Goyal
  2017-08-26  8:35 ` [PATCH 06/11] [media] pvrusb2: " Bhumika Goyal
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Bhumika Goyal @ 2017-08-26  8:35 UTC (permalink / raw)
  To: julia.lawall, crope, mchehab, hans.verkuil, isely, ezequiel,
	royale, linux-media, linux-kernel, linux-usb
  Cc: Bhumika Goyal

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

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/media/usb/pwc/pwc-if.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/usb/pwc/pwc-if.c b/drivers/media/usb/pwc/pwc-if.c
index 22420c1..eb6921d 100644
--- a/drivers/media/usb/pwc/pwc-if.c
+++ b/drivers/media/usb/pwc/pwc-if.c
@@ -146,7 +146,7 @@
 	.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,
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 06/11] [media] pvrusb2: make video_device const
  2017-08-26  8:35 [PATCH 00/11] [media]: make video_device const Bhumika Goyal
                   ` (4 preceding siblings ...)
  2017-08-26  8:35 ` [PATCH 05/11] [media] pwc: " Bhumika Goyal
@ 2017-08-26  8:35 ` Bhumika Goyal
  2017-08-26  8:35 ` [PATCH 07/11] [media] msi2500: " Bhumika Goyal
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Bhumika Goyal @ 2017-08-26  8:35 UTC (permalink / raw)
  To: julia.lawall, crope, mchehab, hans.verkuil, isely, ezequiel,
	royale, linux-media, linux-kernel, linux-usb
  Cc: Bhumika Goyal

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

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c b/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
index 8f13c60..4320bda 100644
--- a/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
+++ b/drivers/media/usb/pvrusb2/pvrusb2-v4l2.c
@@ -1226,7 +1226,7 @@ static unsigned int pvr2_v4l2_poll(struct file *file, poll_table *wait)
 };
 
 
-static struct video_device vdev_template = {
+static const struct video_device vdev_template = {
 	.fops       = &vdev_fops,
 };
 
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 07/11] [media] msi2500: make video_device const
  2017-08-26  8:35 [PATCH 00/11] [media]: make video_device const Bhumika Goyal
                   ` (5 preceding siblings ...)
  2017-08-26  8:35 ` [PATCH 06/11] [media] pvrusb2: " Bhumika Goyal
@ 2017-08-26  8:35 ` Bhumika Goyal
  2017-08-26  8:35 ` [PATCH 08/11] [media] hackrf: " Bhumika Goyal
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Bhumika Goyal @ 2017-08-26  8:35 UTC (permalink / raw)
  To: julia.lawall, crope, mchehab, hans.verkuil, isely, ezequiel,
	royale, linux-media, linux-kernel, linux-usb
  Cc: Bhumika Goyal

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

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/media/usb/msi2500/msi2500.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/usb/msi2500/msi2500.c b/drivers/media/usb/msi2500/msi2500.c
index 79bfd2d..a097d3d 100644
--- a/drivers/media/usb/msi2500/msi2500.c
+++ b/drivers/media/usb/msi2500/msi2500.c
@@ -1143,7 +1143,7 @@ static int msi2500_enum_freq_bands(struct file *file, void *priv,
 	.unlocked_ioctl           = video_ioctl2,
 };
 
-static struct video_device msi2500_template = {
+static const struct video_device msi2500_template = {
 	.name                     = "Mirics MSi3101 SDR Dongle",
 	.release                  = video_device_release_empty,
 	.fops                     = &msi2500_fops,
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 08/11] [media] hackrf:  make video_device const
  2017-08-26  8:35 [PATCH 00/11] [media]: make video_device const Bhumika Goyal
                   ` (6 preceding siblings ...)
  2017-08-26  8:35 ` [PATCH 07/11] [media] msi2500: " Bhumika Goyal
@ 2017-08-26  8:35 ` Bhumika Goyal
  2017-08-26  8:35 ` [PATCH 09/11] [media] go7007: " Bhumika Goyal
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: Bhumika Goyal @ 2017-08-26  8:35 UTC (permalink / raw)
  To: julia.lawall, crope, mchehab, hans.verkuil, isely, ezequiel,
	royale, linux-media, linux-kernel, linux-usb
  Cc: Bhumika Goyal

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

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/media/usb/hackrf/hackrf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/usb/hackrf/hackrf.c b/drivers/media/usb/hackrf/hackrf.c
index a41b305..7eb5351 100644
--- a/drivers/media/usb/hackrf/hackrf.c
+++ b/drivers/media/usb/hackrf/hackrf.c
@@ -1263,7 +1263,7 @@ static int hackrf_enum_freq_bands(struct file *file, void *priv,
 	.unlocked_ioctl           = video_ioctl2,
 };
 
-static struct video_device hackrf_template = {
+static const struct video_device hackrf_template = {
 	.name                     = "HackRF One",
 	.release                  = video_device_release_empty,
 	.fops                     = &hackrf_fops,
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 09/11] [media] go7007: make video_device const
  2017-08-26  8:35 [PATCH 00/11] [media]: make video_device const Bhumika Goyal
                   ` (7 preceding siblings ...)
  2017-08-26  8:35 ` [PATCH 08/11] [media] hackrf: " Bhumika Goyal
@ 2017-08-26  8:35 ` 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
  10 siblings, 0 replies; 12+ messages in thread
From: Bhumika Goyal @ 2017-08-26  8:35 UTC (permalink / raw)
  To: julia.lawall, crope, mchehab, hans.verkuil, isely, ezequiel,
	royale, linux-media, linux-kernel, linux-usb
  Cc: Bhumika Goyal

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

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/media/usb/go7007/go7007-v4l2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/usb/go7007/go7007-v4l2.c b/drivers/media/usb/go7007/go7007-v4l2.c
index 445f17b..98cd57e 100644
--- a/drivers/media/usb/go7007/go7007-v4l2.c
+++ b/drivers/media/usb/go7007/go7007-v4l2.c
@@ -901,7 +901,7 @@ static int go7007_s_ctrl(struct v4l2_ctrl *ctrl)
 	.vidioc_unsubscribe_event = v4l2_event_unsubscribe,
 };
 
-static struct video_device go7007_template = {
+static const struct video_device go7007_template = {
 	.name		= "go7007",
 	.fops		= &go7007_fops,
 	.release	= video_device_release_empty,
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 10/11] [media] cpia2: make video_device const
  2017-08-26  8:35 [PATCH 00/11] [media]: make video_device const Bhumika Goyal
                   ` (8 preceding siblings ...)
  2017-08-26  8:35 ` [PATCH 09/11] [media] go7007: " Bhumika Goyal
@ 2017-08-26  8:35 ` Bhumika Goyal
  2017-08-26  8:35 ` [PATCH 11/11] [media] airspy: " Bhumika Goyal
  10 siblings, 0 replies; 12+ messages in thread
From: Bhumika Goyal @ 2017-08-26  8:35 UTC (permalink / raw)
  To: julia.lawall, crope, mchehab, hans.verkuil, isely, ezequiel,
	royale, linux-media, linux-kernel, linux-usb
  Cc: Bhumika Goyal

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

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/media/usb/cpia2/cpia2_v4l.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/usb/cpia2/cpia2_v4l.c b/drivers/media/usb/cpia2/cpia2_v4l.c
index 7122023..3dedd83 100644
--- a/drivers/media/usb/cpia2/cpia2_v4l.c
+++ b/drivers/media/usb/cpia2/cpia2_v4l.c
@@ -1075,7 +1075,7 @@ static void reset_camera_struct_v4l(struct camera_data *cam)
 	.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,
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 12+ messages in thread

* [PATCH 11/11] [media] airspy: make video_device const
  2017-08-26  8:35 [PATCH 00/11] [media]: make video_device const Bhumika Goyal
                   ` (9 preceding siblings ...)
  2017-08-26  8:35 ` [PATCH 10/11] [media] cpia2: " Bhumika Goyal
@ 2017-08-26  8:35 ` Bhumika Goyal
  10 siblings, 0 replies; 12+ messages in thread
From: Bhumika Goyal @ 2017-08-26  8:35 UTC (permalink / raw)
  To: julia.lawall, crope, mchehab, hans.verkuil, isely, ezequiel,
	royale, linux-media, linux-kernel, linux-usb
  Cc: Bhumika Goyal

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

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
---
 drivers/media/usb/airspy/airspy.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/media/usb/airspy/airspy.c b/drivers/media/usb/airspy/airspy.c
index 07f3f4e..e70c9e2 100644
--- a/drivers/media/usb/airspy/airspy.c
+++ b/drivers/media/usb/airspy/airspy.c
@@ -859,7 +859,7 @@ static int airspy_enum_freq_bands(struct file *file, void *priv,
 	.unlocked_ioctl           = video_ioctl2,
 };
 
-static struct video_device airspy_template = {
+static const struct video_device airspy_template = {
 	.name                     = "AirSpy SDR",
 	.release                  = video_device_release_empty,
 	.fops                     = &airspy_fops,
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2017-08-26  8:37 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [PATCH 02/11] [media] stkwebcam: " Bhumika Goyal
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

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).