All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 1/6] regulator: lm363x: Make the gpio register enable flexible
@ 2019-04-10 13:38 ` Dan Murphy
  0 siblings, 0 replies; 16+ messages in thread
From: Dan Murphy @ 2019-04-10 13:38 UTC (permalink / raw)
  To: robh+dt, jacek.anaszewski, pavel, lee.jones, lgirdwood, broonie
  Cc: devicetree, linux-kernel, linux-leds, Dan Murphy

The use of and enablement of the GPIO can be used across devices.
Use the enable_reg in the regulator descriptor for the register to
write.

Signed-off-by: Dan Murphy <dmurphy@ti.com>
---

v2 - No changes - https://lore.kernel.org/patchwork/patch/1058777/

 drivers/regulator/lm363x-regulator.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/regulator/lm363x-regulator.c b/drivers/regulator/lm363x-regulator.c
index c876e161052a..382b1cecdd93 100644
--- a/drivers/regulator/lm363x-regulator.c
+++ b/drivers/regulator/lm363x-regulator.c
@@ -263,8 +263,8 @@ static int lm363x_regulator_probe(struct platform_device *pdev)
 
 	if (gpiod) {
 		cfg.ena_gpiod = gpiod;
-
-		ret = regmap_update_bits(regmap, LM3632_REG_BIAS_CONFIG,
+		ret = regmap_update_bits(regmap,
+					 lm363x_regulator_desc[id].enable_reg,
 					 LM3632_EXT_EN_MASK,
 					 LM3632_EXT_EN_MASK);
 		if (ret) {
-- 
2.21.0.5.gaeb582a983

^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2019-04-29 18:01 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-10 13:38 [PATCH v2 1/6] regulator: lm363x: Make the gpio register enable flexible Dan Murphy
2019-04-10 13:38 ` Dan Murphy
2019-04-10 13:38 ` [PATCH v2 2/6] dt-bindings: mfd: Add lm36274 bindings to ti-lmu Dan Murphy
2019-04-10 13:38   ` Dan Murphy
2019-04-29 18:00   ` Rob Herring
2019-04-29 18:00     ` Rob Herring
2019-04-10 13:38 ` [PATCH v2 3/6] mfd: ti-lmu: Add LM36274 support to the ti-lmu Dan Murphy
2019-04-10 13:38   ` Dan Murphy
2019-04-10 13:38 ` [PATCH v2 4/6] regulator: lm363x: Add support for LM36274 Dan Murphy
2019-04-10 13:38   ` Dan Murphy
2019-04-10 13:38 ` [PATCH v2 5/6] dt-bindings: leds: Add LED bindings for the LM36274 Dan Murphy
2019-04-10 13:38   ` Dan Murphy
2019-04-29 18:01   ` Rob Herring
2019-04-29 18:01     ` Rob Herring
2019-04-10 13:38 ` [PATCH v2 6/6] leds: lm36274: Introduce the TI LM36274 LED driver Dan Murphy
2019-04-10 13:38   ` Dan Murphy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.