Commit 86844942 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Mauro Carvalho Chehab
Browse files

media: usb: make video_device const



Make these const as they are only used during a copy operation.

Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
Acked-by: default avatarMike Isely <isely@pobox.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 507e1909
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -859,7 +859,7 @@ static const struct v4l2_file_operations airspy_fops = {
	.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 −1
Original line number Diff line number Diff line
@@ -1075,7 +1075,7 @@ static const struct v4l2_file_operations cpia2_fops = {
	.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 −1
Original line number Diff line number Diff line
@@ -901,7 +901,7 @@ static const struct v4l2_ioctl_ops video_ioctl_ops = {
	.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 −1
Original line number Diff line number Diff line
@@ -1263,7 +1263,7 @@ static const struct v4l2_file_operations hackrf_fops = {
	.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 −1
Original line number Diff line number Diff line
@@ -1143,7 +1143,7 @@ static const struct v4l2_file_operations msi2500_fops = {
	.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,
Loading