From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751705AbcFVI2O (ORCPT ); Wed, 22 Jun 2016 04:28:14 -0400 Received: from hqemgate14.nvidia.com ([216.228.121.143]:3432 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750953AbcFVI1e (ORCPT ); Wed, 22 Jun 2016 04:27:34 -0400 X-PGP-Universal: processed; by hqnvupgp08.nvidia.com on Wed, 22 Jun 2016 01:26:41 -0700 From: Alexandre Courbot To: Liam Girdwood , Mark Brown , "Rob Herring" , Mark Rutland CC: , , , Alexandre Courbot Subject: [PATCH 5/6] pwm-regulator: Support for enable GPIO Date: Wed, 22 Jun 2016 17:25:57 +0900 Message-ID: <20160622082558.20935-6-acourbot@nvidia.com> X-Mailer: git-send-email 2.8.3 In-Reply-To: <20160622082558.20935-1-acourbot@nvidia.com> References: <20160622082558.20935-1-acourbot@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Enable the pwm-regulator driver to make use of an enable GPIO. Signed-off-by: Alexandre Courbot --- drivers/regulator/pwm-regulator.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/drivers/regulator/pwm-regulator.c b/drivers/regulator/pwm-regulator.c index ab3cc0235843..8e5e4e744c51 100644 --- a/drivers/regulator/pwm-regulator.c +++ b/drivers/regulator/pwm-regulator.c @@ -273,6 +273,11 @@ static int pwm_regulator_probe(struct platform_device *pdev) if (!init_data) return -ENOMEM; + ret = of_get_regulator_gpio_config(&pdev->dev, np, "enable-gpio", + &config); + if (ret) + return ret; + config.of_node = np; config.dev = &pdev->dev; config.driver_data = drvdata; -- 2.8.3