From patchwork Mon Apr 27 22:37:15 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Bresticker X-Patchwork-Id: 6283881 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 3D6EE9F326 for ; Mon, 27 Apr 2015 22:41:43 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 8083F202F8 for ; Mon, 27 Apr 2015 22:41:42 +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 9F1D5202F0 for ; Mon, 27 Apr 2015 22:41:41 +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 1YmrgW-00060c-LC; Mon, 27 Apr 2015 22:39:28 +0000 Received: from mail-oi0-f73.google.com ([209.85.218.73]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YmrfG-0005NO-Ej for linux-arm-kernel@lists.infradead.org; Mon, 27 Apr 2015 22:38:11 +0000 Received: by oiax69 with SMTP id x69so7804535oia.0 for ; Mon, 27 Apr 2015 15:37:49 -0700 (PDT) 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=FtdmnxBbYqK52u+NHnBinud6z3AxKCTvs2MLKa7ICc0=; b=KlCoxauE6EpG9JUPVGhFVvz9Pz3wCOUY17SizFwrHCmYRf53/Y20c7MS3fuHxuflar XsWrYuWGvTKH0/VI1P9MOMFwm65BgshI4uufJKX9hbziuE5c9mQlpVX1abbg3nbeF+td uPfZFeUow+IFmmUnVj+WmoOEnsudByNi2+Xts+dTP7nlB+uhtKPirwzT+e2NUoOzf+tn JnKnT8cwkhIjYWhPPd6ci54+FS6zjDZ4IGc9tqHVdKtDnax0nqv6FjcZR+95edtLMREo 3sYdM57aZSgNbIEAq9yNPwwGwIBJktl5jSzD7rcy5ES3gI9/I9OtI1wB3RRrhJtg0rMf +LLQ== X-Gm-Message-State: ALoCoQn/EvpeoesI+C3xCcEEjMJ4ciyFF96ydrN9FYtrIBK3Z87yUVkjLHtNbdJwCMaHJsDhifer X-Received: by 10.50.23.100 with SMTP id l4mr7222380igf.1.1430174268948; Mon, 27 Apr 2015 15:37:48 -0700 (PDT) Received: from corpmail-nozzle1-1.hot.corp.google.com ([100.108.1.104]) by gmr-mx.google.com with ESMTPS id r25si1171665yho.3.2015.04.27.15.37.48 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Apr 2015 15:37:48 -0700 (PDT) Received: from abrestic.mtv.corp.google.com ([172.22.65.70]) by corpmail-nozzle1-1.hot.corp.google.com with ESMTP id Rpz1OKeb.1; Mon, 27 Apr 2015 15:37:48 -0700 Received: by abrestic.mtv.corp.google.com (Postfix, from userid 137652) id E0377A49BE; Mon, 27 Apr 2015 15:37:47 -0700 (PDT) From: Andrew Bresticker To: Stephen Warren , Thierry Reding , Alexandre Courbot Subject: [PATCH V7 2/9] mailbox: Make struct mbox_controller's ops field const Date: Mon, 27 Apr 2015 15:37:15 -0700 Message-Id: <1430174242-29465-3-git-send-email-abrestic@chromium.org> X-Mailer: git-send-email 2.2.0.rc0.207.ga3a616c In-Reply-To: <1430174242-29465-1-git-send-email-abrestic@chromium.org> References: <1430174242-29465-1-git-send-email-abrestic@chromium.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150427_153810_567617_DF73C765 X-CRM114-Status: UNSURE ( 9.29 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: devicetree@vger.kernel.org, Jassi Brar , Andrew Bresticker , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org 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=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, 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 Cc: Jassi Brar --- No changes from v5/v6. 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;