Skip to contentSkip to conversation

power: regulator: tps6287x: Use dev_read_addr_index()

PATCH In review [email protected] 2 participants 2 messages May 25

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 power: regulator: tps6287x: Use dev_read_addr_index()

From: Peng Fan <[email protected]>

Use dev_read_addr_index() which supports both live device tree and flat DT backends, avoiding direct dependency on devfdt_* helpers.

No functional changes.

---
 drivers/power/regulator/tps6287x_regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/power/regulator/tps6287x_regulator.c +1 -1
index 6d185719199..2e6d85f677a 100644
@@ -141,7 +141,7 @@ static int tps6287x_regulator_probe(struct udevice *dev)
 
 	pdata->config = (void *)dev_get_driver_data(dev);
 
-	slave_id = devfdt_get_addr_index(dev, 0);
+	slave_id = dev_read_addr_index(dev, 0);
 
 	ret = i2c_get_chip(dev->parent, slave_id, 1, &pdata->i2c);
 	if (ret) {
Signature · 1 line
2.51.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · On Mon, 25 May 2026 at 00:13, <[email protected]> wrote:

From: Peng Fan <[email protected]>

Use dev_read_addr_index() which supports both live device tree and flat DT backends, avoiding direct dependency on devfdt_* helpers.

Quoted 6 lines

No functional changes.

---
 drivers/power/regulator/tps6287x_regulator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)