From patchwork Mon Jan 5 09:01:30 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5565681 Return-Path: X-Original-To: patchwork-linux-omap@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 801B99F4DC for ; Mon, 5 Jan 2015 09:05:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B81CD2015A for ; Mon, 5 Jan 2015 09:05:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7560F200E3 for ; Mon, 5 Jan 2015 09:05:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753517AbbAEJBq (ORCPT ); Mon, 5 Jan 2015 04:01:46 -0500 Received: from mailout4.w1.samsung.com ([210.118.77.14]:31337 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753268AbbAEJBo (ORCPT ); Mon, 5 Jan 2015 04:01:44 -0500 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout4.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NHP00J3159LVV60@mailout4.w1.samsung.com>; Mon, 05 Jan 2015 09:05:45 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-59-54aa52f7f2a2 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 6A.DB.07834.7F25AA45; Mon, 05 Jan 2015 09:01:43 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync4.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NHP00IBC52PMQ00@eusync4.samsung.com>; Mon, 05 Jan 2015 09:01:43 +0000 (GMT) From: Krzysztof Kozlowski To: Samuel Ortiz , Lee Jones , linux-kernel@vger.kernel.org Cc: Krzysztof Kozlowski , Tony Lindgren , linux-omap@vger.kernel.org Subject: [PATCH 11/14] mfd: tps65217: Constify struct regmap_config Date: Mon, 05 Jan 2015 10:01:30 +0100 Message-id: <1420448493-9355-11-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1420448493-9355-1-git-send-email-k.kozlowski@samsung.com> References: <1420448493-9355-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrFJMWRmVeSWpSXmKPExsVy+t/xa7rfg1aFGHy5xG7x+oWhxf2vRxkt Lu+aw2Yxe0k/i8XpblaL/Ve8HNg8vn2dxOJx59oeNo95JwM9+rasYvT4vEkugDWKyyYlNSez LLVI3y6BK+PY+SOMBRvYKs69vsbcwLietYuRk0NCwETi3bSjjBC2mMSFe+vZuhi5OIQEljJK PLhxCsrpY5I4ef4oG0gVm4CxxOblS8BsEYEsiR/TVrN0MXJwMAsUSrQ8jAIJCws4S0w/fgJs KIuAqsT5BwfAbF4Bd4kpd+ayQCyTkzh5bDIrSCsnUPz240gQU0jATeLf24QJjLwLGBlWMYqm liYXFCel5xrqFSfmFpfmpesl5+duYoSEz5cdjIuPWR1iFOBgVOLh9TixMkSINbGsuDL3EKME B7OSCO+6W0Ah3pTEyqrUovz4otKc1OJDjEwcnFINjKUbjX+38S4P+tBjFCvd68q1csMjtcN8 vSrS2vv8T+/9ybQwsJL7XtWxCu5HAV53v637ckhnevUkZq0Wl0yG94/FTk+21Vaa+TYzkONh wEJx33JL27dFTdfXd3IdXVf0m2nxv6gPPT5nzLSPfV4x8chJndx3OqEPQ3Of6Cb6TRfgOh7u lq3/U4mlOCPRUIu5qDgRACSaMB39AQAA Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 regmap_config struct may be const because it is not modified by the driver and regmap_init() accepts pointer to const. Signed-off-by: Krzysztof Kozlowski Cc: Tony Lindgren Cc: linux-omap@vger.kernel.org Acked-by: Tony Lindgren --- drivers/mfd/tps65217.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/tps65217.c b/drivers/mfd/tps65217.c index 80a919a8ca97..7d1cfc1d3ce0 100644 --- a/drivers/mfd/tps65217.c +++ b/drivers/mfd/tps65217.c @@ -145,7 +145,7 @@ int tps65217_clear_bits(struct tps65217 *tps, unsigned int reg, } EXPORT_SYMBOL_GPL(tps65217_clear_bits); -static struct regmap_config tps65217_regmap_config = { +static const struct regmap_config tps65217_regmap_config = { .reg_bits = 8, .val_bits = 8,