From patchwork Thu Aug 10 10:06:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 9893215 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 7A99360236 for ; Thu, 10 Aug 2017 10:48:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D14E28AE5 for ; Thu, 10 Aug 2017 10:48:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 621BC28AEA; Thu, 10 Aug 2017 10:48:48 +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 1749828AE5 for ; Thu, 10 Aug 2017 10:48:48 +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=3uf9SunOQT10zqub/e01QMPHAW0UMbYcTJQdV9eowck=; b=iKazLjDCCVNlwScQ7Ok/ks9kqv 9vocqrSCauwV9WeqnugN0UIq7RXrvU3JNoF1d2lhgsSC0UpYwdV8Txm2jDPb18OhvqFYZ7UIPRm/q FqY7P2J+N9U78eH/Ht23AdvDC2L4XNIgRNYIMlwasmzgL9FBpxkUH+hhP4fGjmZpJAYJ5bnUPgYUI LZWGlgVZAsDeQhJcg9A7dJFonuo2/ds3SgEWw6XtGb3oXfEoyYKPBs2SK/2V06JBI0dwc0GsDvwlr nb1/FDm5WNx7e6cCftd9zzR49dDU1e1XZGXwo+3HHvdUe6eKXpe7Q4axVJeKCU3np/t3JxU7/T1+h Bh04AGDg==; 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 1dfl1C-0004Kn-7W; Thu, 10 Aug 2017 10:48:46 +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 1dfkls-0005BR-Aq for linux-arm-kernel@bombadil.infradead.org; Thu, 10 Aug 2017 10:32:56 +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=zCS1B7uG/77y9HAJwC+mXFeifQ+uhk6eDMJrk2JgLy0=; b=q4kyfRFl5r9L1cQoc/W2nXA24 MxSh4R1LCSNKEXJn9bREZ68o2MQPe9QyNQO0DSiRf/A8mBE1iO8uLIyABnS+W65AC1iXAMgC8L1Yy fjwmfpbVQSE32v3BtZXmfG1Q9j45u+OwoBCuVKsfAwgtyg7ATYzcqLCoT6RSjISwTFqlGJDyD5jLI f6YdHv6cNE0k77NAhZYr/XSFd1Utrpy6sFmhJFoKESMhCD8v3DmUHI5Qe8Dt2rO2Jfzhl56xoUyp3 6u/JuhWhYq25cd7Bjoq2RL+/wzZgU/KHBU+j/HLkyzf6iwtqE8yvb9IuGGkUyIKSGN21KDHvM7hwx fRTb0z7KQ==; 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 1dfklp-0003cF-Ii for linux-arm-kernel@lists.infradead.org; Thu, 10 Aug 2017 10:32:55 +0000 X-IronPort-AV: E=Sophos;i="5.41,352,1498514400"; d="scan'208";a="234125770" 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 05/17] pinctrl: sirf: atlas7: constify pinconf_ops, pinctrl_ops, and pinmux_ops structures Date: Thu, 10 Aug 2017 12:06:17 +0200 Message-Id: <1502359589-15970-6-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_113253_666464_CECDFCF4 X-CRM114-Status: GOOD ( 11.74 ) 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 This pinmux_ops structure is only stored in the const pmxops field of a pinctrl_desc structure. Make the pinmux_ops structure const as well. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/pinctrl/sirf/pinctrl-atlas7.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/sirf/pinctrl-atlas7.c b/drivers/pinctrl/sirf/pinctrl-atlas7.c index d1ef82c..17c326c 100644 --- a/drivers/pinctrl/sirf/pinctrl-atlas7.c +++ b/drivers/pinctrl/sirf/pinctrl-atlas7.c @@ -5261,7 +5261,7 @@ static int atlas7_pmx_gpio_request_enable(struct pinctrl_dev *pctldev, return 0; } -static struct pinmux_ops atlas7_pinmux_ops = { +static const struct pinmux_ops atlas7_pinmux_ops = { .get_functions_count = atlas7_pmx_get_funcs_count, .get_function_name = atlas7_pmx_get_func_name, .get_function_groups = atlas7_pmx_get_func_groups,