From patchwork Mon Oct 27 15:03: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: 5161921 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 2D11BC11AC for ; Mon, 27 Oct 2014 15:34:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 5A6F7201DD for ; Mon, 27 Oct 2014 15:34:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 874152017D for ; Mon, 27 Oct 2014 15:34:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752547AbaJ0PeQ (ORCPT ); Mon, 27 Oct 2014 11:34:16 -0400 Received: from mailout3.w1.samsung.com ([210.118.77.13]:48572 "EHLO mailout3.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751619AbaJ0P3h (ORCPT ); Mon, 27 Oct 2014 11:29:37 -0400 Received: from eucpsbgm1.samsung.com (unknown [203.254.199.244]) by mailout3.w1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NE400KU80I23180@mailout3.w1.samsung.com>; Mon, 27 Oct 2014 15:32:26 +0000 (GMT) X-AuditID: cbfec7f4-b7f6c6d00000120b-00-544e64db45e2 Received: from eusync4.samsung.com ( [203.254.199.214]) by eucpsbgm1.samsung.com (EUCPMTA) with SMTP id F6.E5.04619.BD46E445; Mon, 27 Oct 2014 15:29:31 +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:31 +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 5/8] regulator: max77686: Initialize opmode explicitly to normal mode Date: Mon, 27 Oct 2014 16:03:43 +0100 Message-id: <1414422226-10948-6-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/xa7q3U/xCDP7vErHYOGM9q8WkdQeY LKY+fMJmcf3Lc1aL+UfOsVoc/V1g8fqFoUXvgqtsFmeb3rBb3P96lNHi25UOJotNj6+xWlze NYfNYsb5fUwWty/zWqw9cpfd4nQ3q4OgR0tzD5vH3+fXWTz+rnrB7LFz1l12j02rOtk87lzb w+Yx72Sgx+Yl9R59W1YxenzeJBfAFcVlk5Kak1mWWqRvl8CV8fj1M7aCs+wV/QfPMDYw7mbr YuTkkBAwkei6f58FwhaTuHBvPVCci0NIYCmjxP45rxhBEkICfUwSU5bKgthsAsYSm5cvASsS Eehklug52MsM4jALrGaS+HnlFDNIlbBAuMTtwytZQWwWAVWJbac6wWxeAXeJPYceQK2Wkzh5 bDJYnFPAQ+L1/a/MENvcJT6/38o4gZF3ASPDKkbR1NLkguKk9FxDveLE3OLSvHS95PzcTYyQ EP+yg3HxMatDjAIcjEo8vDum+YYIsSaWFVfmHmKU4GBWEuE9FeAXIsSbklhZlVqUH19UmpNa fIiRiYNTqoGxLzXTRuvkpxnnVzL7zny6Ys/r6xITH/9b4en3VPSd1rrYcAeO0k2Fi4N0bJVf 9jSdtI/PClP8dO1TR8br8F2HShqv+1/9mc9997KH8iWjzgMts370vrmw1IV3hv9LoziOuPeH HCYyLQ7m+KzGMiVR78YSVof2fZudtt//elqleUe4/zKhqTurlFiKMxINtZiLihMB3pkRFE8C AAA= 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 7930b4f82c0b..e5738c363f07 100644 --- a/drivers/regulator/max77686.c +++ b/drivers/regulator/max77686.c @@ -507,8 +507,8 @@ static int max77686_pmic_probe(struct platform_device *pdev) config.init_data = max77686->regulators[i].initdata; config.of_node = max77686->regulators[i].of_node; - max77686->opmode[i] = regulators[i].enable_mask >> - max77686_get_opmode_shift(i); + max77686->opmode[i] = MAX77686_NORMAL; + rdev = devm_regulator_register(&pdev->dev, ®ulators[i], &config); if (IS_ERR(rdev)) {