fdtdec: Use fdt_setprop_u32() for fdtdec_set_phandle()
[oweals/u-boot.git] / include / fdtdec.h
index 266c58271f0bb627b8c69b4de6dd8e3d6bd9c90c..110aa6ab6dea81b8a036c13c65c2d55f66c6159f 100644 (file)
@@ -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