[PATCH 08/11] [media] hackrf: make video_device const

From: Bhumika Goyal
Date: Sat Aug 26 2017 - 04:36:45 EST


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

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