[PATCH] fdt: Indicate that people should use the ofnode API

Simon Glass sjg at chromium.org
Tue Apr 25 18:27:21 CEST 2023


Add a note to the comment at the top of this file.

Signed-off-by: Simon Glass <sjg at chromium.org>
---

 lib/fdtdec.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index 0827e16859f..55cc95db5d0 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -1,6 +1,9 @@
 // SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (c) 2011 The Chromium OS Authors.
+ *
+ * NOTE: Please do not add new devicetree-reading functionality into this file.
+ * Add it to the ofnode API instead, since that is compatible with livetree.
  */
 
 #ifndef USE_HOSTCC
-- 
2.40.0.634.g4ca3ef3211-goog



More information about the U-Boot mailing list