From patchwork Mon Oct 27 15:03:42 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5161831 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 486419F318 for ; Mon, 27 Oct 2014 15:33:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 85576201DD for ; Mon, 27 Oct 2014 15:33:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9D607201B4 for ; Mon, 27 Oct 2014 15:33:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751710AbaJ0P3j (ORCPT ); Mon, 27 Oct 2014 11:29:39 -0400 Received: from mailout1.w1.samsung.com ([210.118.77.11]:52963 "EHLO mailout1.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751026AbaJ0P3d (ORCPT ); Mon, 27 Oct 2014 11:29:33 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout1.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NE400LSN0I0U980@mailout1.w1.samsung.com>; Mon, 27 Oct 2014 15:32:24 +0000 (GMT) X-AuditID: cbfec7f4-b7f6c6d00000120b-fd-544e64da83b4 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 95.E5.04619.AD46E445; Mon, 27 Oct 2014 15:29:30 +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 <0NE4003280CPPUA0@eusync4.samsung.com>; Mon, 27 Oct 2014 15:29:30 +0000 (GMT) From: Krzysztof Kozlowski To: Samuel Ortiz , Lee Jones , Liam Girdwood , Mark Brown , linux-kernel@vger.kernel.org, Ben Dooks , Kukjin Kim , Russell King , linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: Kyungmin Park , Marek Szyprowski , Bartlomiej Zolnierkiewicz , Javier Martinez Canillas , Chanwoo Choi , Krzysztof Kozlowski Subject: [PATCH 4/8] regulator: max77686: Make regulator_desc array const Date: Mon, 27 Oct 2014 16:03:42 +0100 Message-id: <1414422226-10948-5-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1414422226-10948-1-git-send-email-k.kozlowski@samsung.com> References: <1414422226-10948-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrDLMWRmVeSWpSXmKPExsVy+t/xa7q3UvxCDPofqFlsnLGe1WLSugNM FlMfPmGzuP7lOavF/CPnWC2O/i6weP3C0KJ3wVU2i7NNb9gt7n89ymjx7UoHk8Wmx9dYLS7v msNmMeP8PiaL25d5LdYeuctucbqb1UHQo6W5h83j7/PrLB5/V71g9tg56y67x6ZVnWwed67t YfOYdzLQY/OSeo++LasYPT5vkgvgiuKySUnNySxLLdK3S+DK2PzhPlvBC9aKs3cnMzcw/mTp YuTkkBAwkfj4vx/KFpO4cG89WxcjF4eQwFJGiWNHljGBJIQE+pgkvuxSBLHZBIwlNi9fAlYk ItDJLNFzsJcZxGEWWM0k8fPKKWaQKmEBT4lXezpYQWwWAVWJtxcfMYLYvALuEg+2PGGEWCcn cfLYZLAaTgEPidf3vzJDbHOX+Px+K+MERt4FjAyrGEVTS5MLipPScw31ihNzi0vz0vWS83M3 MUJC/MsOxsXHrA4xCnAwKvHw7pjmGyLEmlhWXJl7iFGCg1lJhPdUgF+IEG9KYmVValF+fFFp TmrxIUYmDk6pBsYFqvoJzi73PkvtcZLXqXh9NXaX3ORFj1tiZ9UVn21Q9eKX4t1otXWuk0jU 1Fu2ESJn+/SKEp6nPbFfdPvgmWTzl1JCbtzv3H7c69bJFE/m9K1fNrXD1GxfYfrs4LaUfTzZ 3WHal7leltyYfT6m9MM8tlgWr8g+XRa59fsr9uybLXFz+Xq/eCWW4oxEQy3mouJEACjvuX5P AgAA Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 regulator_register() expects array of 'regulator_desc' to be const. Signed-off-by: Krzysztof Kozlowski Reviewed-by: Javier Martinez Canillas --- drivers/regulator/max77686.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/regulator/max77686.c b/drivers/regulator/max77686.c index 04af7a2b0910..7930b4f82c0b 100644 --- a/drivers/regulator/max77686.c +++ b/drivers/regulator/max77686.c @@ -395,7 +395,7 @@ static struct regulator_ops max77686_buck_dvs_ops = { << MAX77686_OPMODE_BUCK234_SHIFT, \ } -static struct regulator_desc regulators[] = { +static const struct regulator_desc regulators[] = { regulator_desc_ldo1_low(1), regulator_desc_ldo_low(2), regulator_desc_ldo(3),