mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-08 10:39:08 +00:00
fdtdec: Use fdt_setprop_u32() for fdtdec_set_phandle()
The fdt_setprop_u32() function does everything that we need, so we really only use the function as a convenience wrapper, in which case it can simply be a static inline function. Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
parent
f2100f6f77
commit
d81d96901e
2 changed files with 4 additions and 8 deletions
|
@ -1029,7 +1029,10 @@ int fdtdec_setup_memory_banksize(void);
|
|||
* @param phandle phandle to set for the given node
|
||||
* @return 0 on success or a negative error code on failure
|
||||
*/
|
||||
int fdtdec_set_phandle(void *blob, int node, uint32_t phandle);
|
||||
static inline int fdtdec_set_phandle(void *blob, int node, uint32_t phandle)
|
||||
{
|
||||
return fdt_setprop_u32(blob, node, "phandle", phandle);
|
||||
}
|
||||
|
||||
/**
|
||||
* fdtdec_add_reserved_memory() - add or find a reserved-memory node
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue