All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 01/16] regulator: max77686: Use of_get_child_by_name
@ 2014-02-14 11:49 Sachin Kamat
  2014-02-14 11:49 ` [PATCH 02/16] regulator: max77693: " Sachin Kamat
                   ` (15 more replies)
  0 siblings, 16 replies; 32+ messages in thread
From: Sachin Kamat @ 2014-02-14 11:49 UTC (permalink / raw)
  To: linux-kernel; +Cc: broonie, lgirdwood, sachin.kamat

of_find_node_by_name walks the allnodes list, and can thus walk
outside of the parent node. Use of_get_child_by_name instead.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
---
Series compile tested. Some max* regulators tested on h/w.
---
 drivers/regulator/max77686.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/regulator/max77686.c b/drivers/regulator/max77686.c
index ae001ccf26f4..0e725f6ed455 100644
--- a/drivers/regulator/max77686.c
+++ b/drivers/regulator/max77686.c
@@ -400,7 +400,7 @@ static int max77686_pmic_dt_parse_pdata(struct platform_device *pdev,
 	unsigned int i;
 
 	pmic_np = iodev->dev->of_node;
-	regulators_np = of_find_node_by_name(pmic_np, "voltage-regulators");
+	regulators_np = of_get_child_by_name(pmic_np, "voltage-regulators");
 	if (!regulators_np) {
 		dev_err(&pdev->dev, "could not find regulators sub-node\n");
 		return -EINVAL;
-- 
1.7.9.5


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

end of thread, other threads:[~2014-02-15 10:13 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-14 11:49 [PATCH 01/16] regulator: max77686: Use of_get_child_by_name Sachin Kamat
2014-02-14 11:49 ` [PATCH 02/16] regulator: max77693: " Sachin Kamat
2014-02-14 21:08   ` Mark Brown
2014-02-14 11:49 ` [PATCH 03/16] regulator: max8660: " Sachin Kamat
2014-02-14 21:09   ` Mark Brown
2014-02-14 11:49 ` [PATCH 04/16] regulator: max8907: " Sachin Kamat
2014-02-14 21:10   ` Mark Brown
2014-02-14 11:49 ` [PATCH 05/16] regulator: max8925: " Sachin Kamat
2014-02-14 21:11   ` Mark Brown
2014-02-14 11:49 ` [PATCH 06/16] regulator: max8997: " Sachin Kamat
2014-02-14 21:11   ` Mark Brown
2014-02-14 11:49 ` [PATCH 07/16] regulator: 88pm8607: " Sachin Kamat
2014-02-14 21:14   ` Mark Brown
2014-02-14 11:49 ` [PATCH 08/16] regulator: act8865: " Sachin Kamat
2014-02-14 21:15   ` Mark Brown
2014-02-14 11:49 ` [PATCH 09/16] regulator: as3711: " Sachin Kamat
2014-02-14 21:15   ` Mark Brown
2014-02-14 11:49 ` [PATCH 10/16] regulator: da9052: " Sachin Kamat
2014-02-14 21:16   ` Mark Brown
2014-02-14 11:49 ` [PATCH 11/16] regulator: da9055: " Sachin Kamat
2014-02-14 21:18   ` Mark Brown
2014-02-14 11:49 ` [PATCH 12/16] regulator: da9063: " Sachin Kamat
2014-02-14 21:18   ` Mark Brown
2014-02-14 11:49 ` [PATCH 13/16] regulator: mc13xxx: " Sachin Kamat
2014-02-14 21:19   ` Mark Brown
2014-02-14 11:50 ` [PATCH 14/16] regulator: pfuze100: " Sachin Kamat
2014-02-14 21:20   ` Mark Brown
2014-02-14 11:50 ` [PATCH 15/16] regulator: tps6507x: " Sachin Kamat
2014-02-14 21:21   ` Mark Brown
2014-02-14 11:50 ` [PATCH 16/16] regulator: tps65217: " Sachin Kamat
2014-02-14 21:22   ` Mark Brown
2014-02-14 21:08 ` [PATCH 01/16] regulator: max77686: " Mark Brown

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.