From patchwork Mon Sep 12 23:02:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Utkin X-Patchwork-Id: 9328209 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2ED2D60231 for ; Mon, 12 Sep 2016 23:03:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2069428DF7 for ; Mon, 12 Sep 2016 23:03:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 1501628EB5; Mon, 12 Sep 2016 23:03:52 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A38C928DF7 for ; Mon, 12 Sep 2016 23:03:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754810AbcILXDY (ORCPT ); Mon, 12 Sep 2016 19:03:24 -0400 Received: from mail-lf0-f45.google.com ([209.85.215.45]:36615 "EHLO mail-lf0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752927AbcILXDM (ORCPT ); Mon, 12 Sep 2016 19:03:12 -0400 Received: by mail-lf0-f45.google.com with SMTP id g62so97919568lfe.3 for ; Mon, 12 Sep 2016 16:03:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=corp-bluecherry-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/Tn6RwN+yzVjhM2hDVny3PJdSTYtJk9+5IAt/tf3IA4=; b=WLraaYAW9FQse0zdVFWG+qTU3FKGGi6jEhF6Oh2Zhe1F9SsneqCtre/6pzwTJVSysK QYupZXP+tAatei3OyYnoKghsja6RHEvyIzJuwDX0PbChvijm9t4hDo/3DCv+pKLvuYVu 6B32zLSUdofXwupgK/47eXf9nvP7SLchSVg2QOqVfP+dPlxa3UDfIpBFTpQ6j4GdCWHQ CQ0RxCDgboFYXFLghyWYxMyGbet/+TdNF9BRikmR4o2mkNsC0pW75skX5j0PJ5A4CWdQ xlT3pHlxrWWQT2P/oMcth4crUPgPY6QtWG76PHbLc5QFbpleEIJPKdPLZMRYbZEItUqf Ycqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/Tn6RwN+yzVjhM2hDVny3PJdSTYtJk9+5IAt/tf3IA4=; b=NoNShoSP4lRIgeHjPzan0mlKOQppYHRTZoi1aMp6dJTebdnvEjElVQb/1jbbe4+M7s UPKhyYChAadzHbwAX6xVjwpgRyPR629aOYf/IXqvDteoEiLXegpCboXAG7iHrKVVkkqC nuJJt2NSV2divHJNTqD/6ERpEVn4KsyZO55mNbob7xyrmP+ZHjVFok7YVt8LneEluiJi btaAj0rcwW9clnLWLdquxObLxwS22kOUckmK/A/pr3FTNxDX/D9acDufy3aJcCElSTTy WlMxoMdXUZouGhAMFdnFt9NEjt9PUogH+YvU2bERwxJEVZrIzy/Gc2PjsISdD4I3fBwT R7oA== X-Gm-Message-State: AE9vXwNDlxogVuU6oQqJfWt2QVXH8NpIJ2UojC07/mqZZynoNjRyjS4TOlqYERmvnuleaQ3+ X-Received: by 10.46.33.154 with SMTP id h26mr1826644lji.58.1473721390771; Mon, 12 Sep 2016 16:03:10 -0700 (PDT) Received: from localhost.localdomain ([91.198.4.228]) by smtp.gmail.com with ESMTPSA id p21sm3517223lfi.4.2016.09.12.16.03.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Sep 2016 16:03:10 -0700 (PDT) From: Andrey Utkin To: linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, mchehab@kernel.org, hans.verkuil@cisco.com, Julia.Lawall@lip6.fr Cc: andrey_utkin@fastmail.com, maintainers@bluecherrydvr.com, Andrey Utkin Subject: [PATCH 2/2] [media] tw5864: constify struct video_device template Date: Tue, 13 Sep 2016 02:02:38 +0300 Message-Id: <20160912230238.2302-3-andrey.utkin@corp.bluecherry.net> X-Mailer: git-send-email 2.9.2 In-Reply-To: <20160912230238.2302-1-andrey.utkin@corp.bluecherry.net> References: <20160912230238.2302-1-andrey.utkin@corp.bluecherry.net> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP tw5864_video_template is used for filling of actual video_device structures. It is copied by value, and is not used for anything else. Signed-off-by: Andrey Utkin --- drivers/media/pci/tw5864/tw5864-video.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/pci/tw5864/tw5864-video.c b/drivers/media/pci/tw5864/tw5864-video.c index 7401b64..652a059 100644 --- a/drivers/media/pci/tw5864/tw5864-video.c +++ b/drivers/media/pci/tw5864/tw5864-video.c @@ -912,7 +912,7 @@ static const struct v4l2_ioctl_ops video_ioctl_ops = { #endif }; -static struct video_device tw5864_video_template = { +static const struct video_device tw5864_video_template = { .name = "tw5864_video", .fops = &video_fops, .ioctl_ops = &video_ioctl_ops,