Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754645AbdHZIfs (ORCPT ); Sat, 26 Aug 2017 04:35:48 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:32940 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754312AbdHZIfp (ORCPT ); Sat, 26 Aug 2017 04:35:45 -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 02/11] [media] stkwebcam: make video_device const Date: Sat, 26 Aug 2017 14:05:06 +0530 Message-Id: <1503736515-15366-3-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: 716 Lines: 22 Make this const as it is only used in a copy operation. Signed-off-by: Bhumika Goyal --- 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