From patchwork Mon Jan 5 09:01:31 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5565781 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 F21339F4DC for ; Mon, 5 Jan 2015 09:08:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3C11C2015A for ; Mon, 5 Jan 2015 09:08:59 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 929C3200DE for ; Mon, 5 Jan 2015 09:08:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753471AbbAEJIl (ORCPT ); Mon, 5 Jan 2015 04:08:41 -0500 Received: from mailout2.w1.samsung.com ([210.118.77.12]:39513 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753355AbbAEJBp (ORCPT ); Mon, 5 Jan 2015 04:01:45 -0500 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout2.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NHP00KUW59O8U30@mailout2.w1.samsung.com>; Mon, 05 Jan 2015 09:05:48 +0000 (GMT) X-AuditID: cbfec7f4-b7f126d000001e9a-5c-54aa52f79420 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 3B.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 12/14] mfd: tps65218: Constify struct regmap_config Date: Mon, 05 Jan 2015 10:01:31 +0100 Message-id: <1420448493-9355-12-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/xa7rfg1aFGFxZI2vx+oWhxf2vRxkt Lu+aw2Yxe0k/i8XpblaL/Ve8HNg8vn2dxOJx59oeNo95JwM9+rasYvT4vEkugDWKyyYlNSez LLVI3y6BK+N3Tx9jwXm2ikuTnzE2MJ5m7WLk5JAQMJG40H2AGcIWk7hwbz1bFyMXh5DAUkaJ Q0umM0E4fUwSJ88fZQOpYhMwlti8fAmYLSKQJfFj2mqWLkYODmaBQomWh1EgYWEBZ4kT254x gdgsAqoSTy5vYQGxeQXcJc4d38ECsUxO4uSxyawgrZxA8duPI0FMIQE3iX9vEyYw8i5gZFjF KJpamlxQnJSea6hXnJhbXJqXrpecn7uJERI+X3YwLj5mdYhRgINRiYfX48TKECHWxLLiytxD jBIczEoivOtuAYV4UxIrq1KL8uOLSnNSiw8xMnFwSjUwxn7/PONM0hGX1/8mdP1Yfm6J0lzm rStCL360mH0y4nt3v/SKvQUNXtm78qT2zFs049OvDyXXXh1Lu2G3e3XWo4c2yn0FnbXbtRhe aoa/64vnZj9lG9nQFnvrltHqRp2PnU2n1hzvfnYzdIUgr2zLy8dzJeyn/PuTICRxMlaj8Lqp aGubzBqfFCWW4oxEQy3mouJEAExwnTH9AQAA 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 --- drivers/mfd/tps65218.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/tps65218.c b/drivers/mfd/tps65218.c index 0d256cb002eb..b019b3198afe 100644 --- a/drivers/mfd/tps65218.c +++ b/drivers/mfd/tps65218.c @@ -125,7 +125,7 @@ int tps65218_clear_bits(struct tps65218 *tps, unsigned int reg, } EXPORT_SYMBOL_GPL(tps65218_clear_bits); -static struct regmap_config tps65218_regmap_config = { +static const struct regmap_config tps65218_regmap_config = { .reg_bits = 8, .val_bits = 8, .cache_type = REGCACHE_RBTREE,