From patchwork Wed Oct 29 15:06:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 5188741 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 A33179F30B for ; Wed, 29 Oct 2014 15:13:19 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D3D8920172 for ; Wed, 29 Oct 2014 15:13:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 08D1D20121 for ; Wed, 29 Oct 2014 15:13:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933176AbaJ2PNQ (ORCPT ); Wed, 29 Oct 2014 11:13:16 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:10181 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933723AbaJ2PLG (ORCPT ); Wed, 29 Oct 2014 11:11:06 -0400 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 <0NE700F42OZ1MY30@mailout4.w1.samsung.com>; Wed, 29 Oct 2014 15:13:49 +0000 (GMT) X-AuditID: cbfec7f4-b7f6c6d00000120b-9d-545103871fdf Received: from eusync1.samsung.com ( [203.254.199.211]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id 20.57.04619.78301545; Wed, 29 Oct 2014 15:11:03 +0000 (GMT) Received: from AMDC1943.digital.local ([106.116.151.171]) by eusync1.samsung.com (Oracle Communications Messaging Server 7u4-23.01(7.0.4.23.0) 64bit (built Aug 10 2011)) with ESMTPA id <0NE70053ROU6N540@eusync1.samsung.com>; Wed, 29 Oct 2014 15:11:03 +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 v2 5/8] regulator: max77686: Initialize opmode explicitly to normal mode Date: Wed, 29 Oct 2014 16:06:43 +0100 Message-id: <1414595206-1437-6-git-send-email-k.kozlowski@samsung.com> X-Mailer: git-send-email 1.9.1 In-reply-to: <1414595206-1437-1-git-send-email-k.kozlowski@samsung.com> References: <1414595206-1437-1-git-send-email-k.kozlowski@samsung.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrLLMWRmVeSWpSXmKPExsVy+t/xy7rtzIEhBlsPK1psnLGe1WLSugNM FlMfPmGzuP7lOavF/CPnWC2O/i6weP3C0KJ3wVU2i7NNb9gt7n89ymjx7UoHk8Wmx9dYLS7v msNmMeP8PiaL25d5LdYeuctucbqb1UHQo6W5h83j7/PrLB5/V71g9tg56y67x6ZVnWwed67t YfOYdzLQY/OSeo++LasYPT5vkgvgiuKySUnNySxLLdK3S+DKeNj8lLngD3vFhP1vmBoYn7B1 MXJySAiYSGzdsYYJwhaTuHBvPVCci0NIYCmjxOzJcxghnD4miQ0Xd4NVsQkYS2xevgSsSkSg k1mi52AvM4jDLLCaSeLnlVPMIFXCAlESzVu6GEFsFgFViUVLH4Ht4xVwk3j6+SAjxD45iZPH JrOC2JwC7hILWz6AxYWAat4um8QygZF3ASPDKkbR1NLkguKk9FxDveLE3OLSvHS95PzcTYyQ IP+yg3HxMatDjAIcjEo8vA4bA0KEWBPLiitzDzFKcDArifB+/gUU4k1JrKxKLcqPLyrNSS0+ xMjEwSnVwBg3Lyur/uK0J5duPRRS0sz8yz6Ru3PSgS8RAoye6XPVVbvMI9fVTLn2eL1mSnrR HKNrqhd6IksumTnoNS6a+/2Y6MYlERHOwqHpFhtuviz9WcDfKnPo754CyxOCTouZ+7WmCHfN PXxD7co195ITu1f4tuoFL6z/72k28wXP+fa1oezsQtVdV5VYijMSDbWYi4oTAVl6r5xQAgAA 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 Minor nit: Initialize the opmode for each regulator to normal mode in a readable explicit way. Signed-off-by: Krzysztof Kozlowski Suggested-by: Javier Martinez Canillas Reviewed-by: Javier Martinez Canillas --- drivers/regulator/max77686.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/max77686.c b/drivers/regulator/max77686.c index 7ec9b4e5b917..5497e10b9659 100644 --- a/drivers/regulator/max77686.c +++ b/drivers/regulator/max77686.c @@ -497,8 +497,8 @@ static int max77686_pmic_probe(struct platform_device *pdev) config.init_data = rdata[i].init_data; config.of_node = rdata[i].of_node; - max77686->opmode[id] = regulators[i].enable_mask >> - max77686_get_opmode_shift(id); + max77686->opmode[id] = MAX77686_NORMAL; + rdev = devm_regulator_register(&pdev->dev, ®ulators[i], &config); if (IS_ERR(rdev)) {