From patchwork Thu Aug 10 10:06:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 9893213 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 9AD7F60236 for ; Thu, 10 Aug 2017 10:48:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8D4B228AE5 for ; Thu, 10 Aug 2017 10:48:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 821F728AEA; Thu, 10 Aug 2017 10:48:41 +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=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 906D728AE5 for ; Thu, 10 Aug 2017 10:48:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=bAaLr1jxLykAqE4dELasvdbriNNBMI98ISzcvXvhyHo=; b=igVdraEPZZikCByzgfxz8mOPmR /8aCUegdK2fMFDj7UvxaGb5HSRNm3deY+pHr+XBpSLxLE2CZb4Zlb/PWedPYglLkiI0QAZx3Q0UH4 gg42RsHi2cxy2OAQ/knTE/ryurDOAD1uPSK8oCF628+elutkmDeNciNr6U5jtpYnAD9+wAKjBnRX2 1TsPx6+UuoAKUeycmoXCuZb+x201+9pmM/v4365Rh4plV3Zlue/uwR1oc62oDAzZ7OWJdsotGLTT1 Kw/3wgKxbSZREVLlkalkcsb3EZEak7lMGA1Q2gzJEdm6nH2CxbuJO5o3SXo9aWIrAPED87ypeUMqA 5ypQQDeQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dfl0v-00042p-BK; Thu, 10 Aug 2017 10:48:29 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dfklq-0005BH-R1 for linux-arm-kernel@bombadil.infradead.org; Thu, 10 Aug 2017 10:32:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=eAj9MisWk7soHnwaK/mFrNRfdkuQQBW0aDUG+z3AiUQ=; b=kIwWnhKKDLF7UR70POG2qsCoa Bw7GDVliOo+Qj30ff9wh04cgIxJhB/rppaE4XoHcVQ72WIieilnbVhdl9XLnAYmE1dGK9sg+pm1Hf HL5iNUiz+VVWDPb2NIXQYxlNApoiCJyCtLY1Ico+tUnN74m4gOSxKWerLc+N9yXrJwWlLEgVwDnrC 9+4bPicgyYD+vOKKP4FO/9eZf0JI8SON5uuybD6QVc7jwD6K98aW96g7LQin9hg5Z4qkdJRbo9DYp CDtQUvTnHJkLLLDs84O2RneXQ97mnQqUfpP6oC3sAI/TG3mDQNKNKWwsSmH85FESPVWCZ3UuO2isL zmwF1TnMg==; Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]) by casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dfkln-0003cF-T9 for linux-arm-kernel@lists.infradead.org; Thu, 10 Aug 2017 10:32:53 +0000 X-IronPort-AV: E=Sophos;i="5.41,352,1498514400"; d="scan'208";a="234125771" Received: from palace.rsr.lip6.fr (HELO localhost.localdomain) ([132.227.105.202]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES128-SHA256; 10 Aug 2017 12:32:05 +0200 From: Julia Lawall To: Linus Walleij Subject: [PATCH 06/17] pinctrl: sirf: constify pinconf_ops, pinctrl_ops, and pinmux_ops structures Date: Thu, 10 Aug 2017 12:06:18 +0200 Message-Id: <1502359589-15970-7-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1502359589-15970-1-git-send-email-Julia.Lawall@lip6.fr> References: <1502359589-15970-1-git-send-email-Julia.Lawall@lip6.fr> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170810_113252_011807_D94F2CC0 X-CRM114-Status: GOOD ( 12.89 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Barry Song , kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, bhumirks@gmail.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP These structures are only stored in fields of a pinctrl_desc structure (pctlops and pmxops) that are const. Make the structures const as well. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/pinctrl/sirf/pinctrl-sirf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/sirf/pinctrl-sirf.c b/drivers/pinctrl/sirf/pinctrl-sirf.c index 80bfd47..d3ef059 100644 --- a/drivers/pinctrl/sirf/pinctrl-sirf.c +++ b/drivers/pinctrl/sirf/pinctrl-sirf.c @@ -133,7 +133,7 @@ static void sirfsoc_dt_free_map(struct pinctrl_dev *pctldev, kfree(map); } -static struct pinctrl_ops sirfsoc_pctrl_ops = { +static const struct pinctrl_ops sirfsoc_pctrl_ops = { .get_groups_count = sirfsoc_get_groups_count, .get_group_name = sirfsoc_get_group_name, .get_group_pins = sirfsoc_get_group_pins, @@ -229,7 +229,7 @@ static int sirfsoc_pinmux_request_gpio(struct pinctrl_dev *pmxdev, return 0; } -static struct pinmux_ops sirfsoc_pinmux_ops = { +static const struct pinmux_ops sirfsoc_pinmux_ops = { .set_mux = sirfsoc_pinmux_set_mux, .get_functions_count = sirfsoc_pinmux_get_funcs_count, .get_function_name = sirfsoc_pinmux_get_func_name,