Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1428553
| From | Alexandre Courbot <acourbot@nvidia.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH 5/6] pwm-regulator: Support for enable GPIO |
| Date | 2016-06-22 10:40 +0200 |
| Message-ID | <rMLRv-137-9@gated-at.bofh.it> (permalink) |
| References | <rMLHQ-ZT-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Enable the pwm-regulator driver to make use of an enable GPIO. Signed-off-by: Alexandre Courbot <acourbot@nvidia.com> --- 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
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH 0/6] regulator: add enable GPIO property to pwm-regulator Alexandre Courbot <acourbot@nvidia.com> - 2016-06-22 10:30 +0200
[PATCH 5/6] pwm-regulator: Support for enable GPIO Alexandre Courbot <acourbot@nvidia.com> - 2016-06-22 10:40 +0200
[PATCH 4/6] regulator: gpio: Use of_get_regulator_gpio_config Alexandre Courbot <acourbot@nvidia.com> - 2016-06-22 10:40 +0200
[PATCH 3/6] regulator: fixed: Use of_get_regulator_gpio_config Alexandre Courbot <acourbot@nvidia.com> - 2016-06-22 10:40 +0200
[PATCH 2/6] regulator: of: Add enable GPIO configuration function Alexandre Courbot <acourbot@nvidia.com> - 2016-06-22 10:40 +0200
Re: [PATCH 2/6] regulator: of: Add enable GPIO configuration function Mark Brown <broonie@kernel.org> - 2016-06-22 12:40 +0200
csiph-web