Skip to contentSkip to conversation

thermal: ti-bandgap: Use dev_read_addr_index()

PATCH In review [email protected] 2 participants 2 messages May 26 – Jun 9 Thermal

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 thermal: ti-bandgap: 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/thermal/ti-bandgap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/ti-bandgap.c +1 -1
index dc869f108e4..643971e12cd 100644
@@ -176,7 +176,7 @@ static int ti_bandgap_probe(struct udevice *dev)
 {
 	struct ti_bandgap *bgp = dev_get_priv(dev);
 
-	bgp->base = devfdt_get_addr_index(dev, 1);
+	bgp->base = dev_read_addr_index(dev, 1);
 
 	return 0;
 }
Signature · 1 line
2.51.0
#1 lore raw
Quoted 6 lines · On Tue, 26 May 2026 14:49:09 +0800, [email protected] wrote:

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

No functional changes.

Applied to u-boot/next, thanks!

[1/1] thermal: ti-bandgap: Use dev_read_addr_index()

      commit: 8b5e2a25aba97e43180096de71a8ac5617ba25ec
Signature · 1 line
Tom