From patchwork Mon Sep 12 23:02:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrey Utkin X-Patchwork-Id: 9328207 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 8F88A60231 for ; Mon, 12 Sep 2016 23:03:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 811C028DF7 for ; Mon, 12 Sep 2016 23:03:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7566C28EB5; Mon, 12 Sep 2016 23:03:47 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,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 EFB0D28DF7 for ; Mon, 12 Sep 2016 23:03:46 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755258AbcILXD0 (ORCPT ); Mon, 12 Sep 2016 19:03:26 -0400 Received: from mail-lf0-f52.google.com ([209.85.215.52]:33333 "EHLO mail-lf0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753157AbcILXDL (ORCPT ); Mon, 12 Sep 2016 19:03:11 -0400 Received: by mail-lf0-f52.google.com with SMTP id h127so98369733lfh.0 for ; Mon, 12 Sep 2016 16:03:10 -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=KUsXfdDGYOAaN+GEKbv8mnouMuPs3TTcq0BtpYnfgMM=; b=AVQrkmwQHg5d/esYqjYkkgcZv11Lh81aMgT6564pSHSFNR7KavqJ5oq6fUR7teaqjb Vu03hk9aH8I5l1nxvXVDkSxyLR46oBO0q1MjMFrqsHe9Ico5b2UVhPjzdJRsmRVuks35 vnlhg/MIDfuVgVAQTpJ07nhKouTBIEqYuHolKKww7qAqSAr+P1aEuIXjmehuzwkUurae oZgZObLWhEVFeMpTZOHI6HO4lTQqLyeHH8j2ShlAsmB52S37oKnDJ5TE9BYUNMXN5V8Z WKtHLm7gqlvXILupsmCV7oYsiF0Q8qKrWBQlo9OtrF87sMeUybCu5Q31j3gWkLA/iLzT ToeA== 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=KUsXfdDGYOAaN+GEKbv8mnouMuPs3TTcq0BtpYnfgMM=; b=f8CsQ4sg62p1E1gEpds/R/OiWTXZN8wlizImrewA9+GkyMQw10Y/IJ62SEfLu9oHZr LZ31qZ2xOWkTH1IeGjzOWIEJ/y/neKrW9FdeW+CHBZaNHhH52eaf2jdFG/wqhHaDPh+W gnjOh501QYJFqMUtKXfvUg8WEVNPCb38mD/7ynbKVYq4KW9tUU+CLLJ3cBL7BaGScX71 uNMUsnNUdfcKdh1N0oX0zZVBwWoJx+10CiKp0So8uXg3DnCkYzbVSBzxDAykf/0m6NwR GZAVMAIBZckFGuvYgd6qIVZ9rxkCvJQ1N00ERLeJQQfi23eb/ooJDRQ6xyjFg058AvIS X6fg== X-Gm-Message-State: AE9vXwMAG5g109oQm4dWdDIPZnlUyeGGhYHJCQZSDkc1Zrk0pYK77emA4C20R7bZvV4n07f/ X-Received: by 10.25.145.198 with SMTP id t189mr6185282lfd.106.1473721389325; Mon, 12 Sep 2016 16:03:09 -0700 (PDT) Received: from localhost.localdomain ([91.198.4.228]) by smtp.gmail.com with ESMTPSA id p21sm3517223lfi.4.2016.09.12.16.03.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Sep 2016 16:03:08 -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 1/2] [media] tw5864: constify vb2_ops structure Date: Tue, 13 Sep 2016 02:02:37 +0300 Message-Id: <20160912230238.2302-2-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 Inspired by "[media] pci: constify vb2_ops structures" patch from Julia Lawall (dated 9 Sep 2016). 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 6c1685a..7401b64 100644 --- a/drivers/media/pci/tw5864/tw5864-video.c +++ b/drivers/media/pci/tw5864/tw5864-video.c @@ -465,7 +465,7 @@ static void tw5864_stop_streaming(struct vb2_queue *q) spin_unlock_irqrestore(&input->slock, flags); } -static struct vb2_ops tw5864_video_qops = { +static const struct vb2_ops tw5864_video_qops = { .queue_setup = tw5864_queue_setup, .buf_queue = tw5864_buf_queue, .start_streaming = tw5864_start_streaming,