thermal: ti-bandgap: Use dev_read_addr_index()
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.
Signed-off-by Peng Fan <[email protected]>
--- drivers/thermal/ti-bandgap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/thermal/ti-bandgap.c +1 -1
@@ -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
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