summaryrefslogtreecommitdiff
path: root/drivers/power
diff options
context:
space:
mode:
authorPeng Fan <[email protected]>2026-05-25 15:29:47 +0800
committerPeng Fan <[email protected]>2026-06-09 23:55:56 +0800
commitbe9ded7803498ae875548e448870199f6563fa10 (patch)
tree91bdcedb85e809285317eaa33b3fad939423d262 /drivers/power
parent7ab0a58e86599f9430e23af5c64c31adf4999a13 (diff)
power: regulator: tps6287x: Use dev_read_addr_index()
Use dev_read_addr_index() which supports both live device tree and flat DT backends, avoiding direct dependency on devfdt_* helpers. No functional changes. Reviewed-by: Simon Glass <[email protected]> Signed-off-by: Peng Fan <[email protected]>
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/regulator/tps6287x_regulator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/regulator/tps6287x_regulator.c b/drivers/power/regulator/tps6287x_regulator.c
index 6d185719199..2e6d85f677a 100644
--- a/drivers/power/regulator/tps6287x_regulator.c
+++ b/drivers/power/regulator/tps6287x_regulator.c
@@ -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) {