summaryrefslogtreecommitdiffstats
path: root/cpukit/include/libfdt.h
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2016-09-30 15:57:15 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-19 07:01:09 +0200
commitb0ceda549821c6c2743cf2ce7d13cf921b7a4df0 (patch)
tree116de21502a49cd88e1247d6654f6448e45af194 /cpukit/include/libfdt.h
parentlibfdt: Add new errors for the overlay code (diff)
downloadrtems-b0ceda549821c6c2743cf2ce7d13cf921b7a4df0.tar.bz2
libfdt: Extend the reach of FDT_ERR_BADPHANDLE
So far, the BADPHANDLE error was only used for incorrect phandle values. Extend that meaning to an improperly formatted phandle property. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to '')
-rw-r--r--cpukit/include/libfdt.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/cpukit/include/libfdt.h b/cpukit/include/libfdt.h
index 361cc6c719..d2e5e031fb 100644
--- a/cpukit/include/libfdt.h
+++ b/cpukit/include/libfdt.h
@@ -79,8 +79,10 @@
* (e.g. missing a leading / for a function which requires an
* absolute path) */
#define FDT_ERR_BADPHANDLE 6
- /* FDT_ERR_BADPHANDLE: Function was passed an invalid phandle
- * value. phandle values of 0 and -1 are not permitted. */
+ /* FDT_ERR_BADPHANDLE: Function was passed an invalid phandle.
+ * This can be caused either by an invalid phandle property
+ * length, or the phandle value was either 0 or -1, which are
+ * not permitted. */
#define FDT_ERR_BADSTATE 7
/* FDT_ERR_BADSTATE: Function was passed an incomplete device
* tree created by the sequential-write functions, which is