Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754714AbdHZIgF (ORCPT ); Sat, 26 Aug 2017 04:36:05 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:38003 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751464AbdHZIgC (ORCPT ); Sat, 26 Aug 2017 04:36:02 -0400 From: Bhumika Goyal 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 Subject: [PATCH 04/11] [media] s2255drv: make video_device const Date: Sat, 26 Aug 2017 14:05:08 +0530 Message-Id: <1503736515-15366-5-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1503736515-15366-1-git-send-email-bhumirks@gmail.com> References: <1503736515-15366-1-git-send-email-bhumirks@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 680 Lines: 22 Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- 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