From patchwork Mon Nov 17 22:41:32 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Bresticker X-Patchwork-Id: 5324051 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2DBD4C11AC for ; Mon, 17 Nov 2014 22:45:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 659462012F for ; Mon, 17 Nov 2014 22:44:59 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9873D200D5 for ; Mon, 17 Nov 2014 22:44:58 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XqV0L-0003qJ-SI; Mon, 17 Nov 2014 22:42:41 +0000 Received: from mail-oi0-f74.google.com ([209.85.218.74]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XqUzn-0003cz-RR for linux-arm-kernel@lists.infradead.org; Mon, 17 Nov 2014 22:42:09 +0000 Received: by mail-oi0-f74.google.com with SMTP id e131so432504oig.3 for ; Mon, 17 Nov 2014 14:41:46 -0800 (PST) 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=2cy08ee0vhv76Tl2dE/BA4lbPwPM+SRkYooTP/kuzCo=; b=ImwcFSSPmUPauBKeYXeYTXBNmdANWcSiznkcyDE4fD1V0WAgrwbvsidFiJDPVbSWNI bL5ZMLnlpcAy6pcnXpDRGec55UsBHnTw8tZVXFVpu8ZE1vl/XfIrEafeFz7svKso8/q1 NHzXGoSKb5jsN51kJvxVhQBpudTtSQuMmcSy0J69BBicW+OnYeqXz1jfQpzHZe3+1Bto RzbTafXwvAMCMc5JuVG3p6cFnXFGa+xDOg89jl+0cStiiSYpROvGevIyxN1Rx2k2dOWC nr/YzO1fwKXOyjhOt9JTaIMKgTtVCUqDilgsQgWa7c+/bMSD40k+glVhnd1/gP5VoBsz v/KQ== X-Gm-Message-State: ALoCoQmsJC8GMx3m/ZpZd++iR3nPKs0mEjlRulfSrgBiIHs+7LVLVraNCfRXvgESWgk1bgXMVcan X-Received: by 10.182.89.136 with SMTP id bo8mr32684173obb.7.1416264106681; Mon, 17 Nov 2014 14:41:46 -0800 (PST) Received: from corpmail-nozzle1-1.hot.corp.google.com ([100.108.1.104]) by gmr-mx.google.com with ESMTPS id u7si9064264qcz.3.2014.11.17.14.41.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 17 Nov 2014 14:41:46 -0800 (PST) Received: from abrestic.mtv.corp.google.com ([172.22.65.70]) by corpmail-nozzle1-1.hot.corp.google.com with ESMTP id DUmfug4R.1; Mon, 17 Nov 2014 14:41:46 -0800 Received: by abrestic.mtv.corp.google.com (Postfix, from userid 137652) id 55874220BAD; Mon, 17 Nov 2014 14:41:44 -0800 (PST) From: Andrew Bresticker To: Stephen Warren , Thierry Reding , Alexandre Courbot , linux-tegra@vger.kernel.org Subject: [PATCH V5 02/12] mailbox: Make struct mbox_controller's ops field const Date: Mon, 17 Nov 2014 14:41:32 -0800 Message-Id: <1416264102-1323-3-git-send-email-abrestic@chromium.org> X-Mailer: git-send-email 2.1.0.rc2.206.gedb03e5 In-Reply-To: <1416264102-1323-1-git-send-email-abrestic@chromium.org> References: <1416264102-1323-1-git-send-email-abrestic@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20141117_144207_951922_6F6436EA X-CRM114-Status: GOOD ( 10.61 ) X-Spam-Score: -0.7 (/) Cc: Mark Rutland , devicetree@vger.kernel.org, linux-usb@vger.kernel.org, Russell King , Mathias Nyman , Pawel Moll , Ian Campbell , Andrew Bresticker , Greg Kroah-Hartman , Linus Walleij , Jassi Brar , linux-kernel@vger.kernel.org, Kishon Vijay Abraham I , Olof Johansson , Rob Herring , Alan Stern , linux-arm-kernel@lists.infradead.org, Kumar Gala , Grant Likely , Arnd Bergmann X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_LOW, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The mailbox controller's channel ops ought to be read-only. Signed-off-by: Andrew Bresticker --- New for v5. --- include/linux/mailbox_controller.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/mailbox_controller.h b/include/linux/mailbox_controller.h index d4cf96f..68c4245 100644 --- a/include/linux/mailbox_controller.h +++ b/include/linux/mailbox_controller.h @@ -72,7 +72,7 @@ struct mbox_chan_ops { */ struct mbox_controller { struct device *dev; - struct mbox_chan_ops *ops; + const struct mbox_chan_ops *ops; struct mbox_chan *chans; int num_chans; bool txdone_irq;