diff options
| author | Peng Fan <[email protected]> | 2026-05-26 14:39:14 +0800 |
|---|---|---|
| committer | Jerome Forissier <[email protected]> | 2026-06-03 16:55:55 +0200 |
| commit | 6184a9b10670efac4348735064712aa0e12fdf83 (patch) | |
| tree | 1dd689be12a1ae3fa83331549ee6efcfbae21baf /contrib/apps/httpserver/httpserver-netconn.h | |
| parent | 3518bf17ba4435067bd5c7b3eb7148e7182fe6b1 (diff) | |
phy: ti-pipe3: Use device API for DT parsing
Replace legacy FDT parsing in get_reg() with the device API
dev_read_phandle_with_args() which removes direct access to gd->fdt_blob
and aligns the driver with modern U-Boot DT handling.
The offset is retrieved from the phandle argument instead of manually
parsing the property cells. Add validation for the argument
count to avoid out-of-bounds access on malformed DTs.
Also switch from devfdt_get_addr_size_index() to dev_read_addr_size_index()
for consistency with the DM API.
No functional changes.
Signed-off-by: Peng Fan <[email protected]>
Reviewed-by: Stefan Roese <[email protected]>
Diffstat (limited to 'contrib/apps/httpserver/httpserver-netconn.h')
0 files changed, 0 insertions, 0 deletions
