aboutsummaryrefslogtreecommitdiff
path: root/libfdt
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@free-electrons.com>2016-09-30 15:57:15 +0200
committerDavid Gibson <david@gibson.dropbear.id.au>2016-10-06 19:22:41 +1100
commit39240cc865cfbd4aecf86e33a72156f7fc043df3 (patch)
tree1d5191e9f18b0484cee2b1f65910d208e7a40e63 /libfdt
parent4aa3a6f5e6d92179099d466422c450ebc12e5b1a (diff)
downloaddtc-39240cc865cfbd4aecf86e33a72156f7fc043df3.zip
dtc-39240cc865cfbd4aecf86e33a72156f7fc043df3.tar.gz
dtc-39240cc865cfbd4aecf86e33a72156f7fc043df3.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 'libfdt')
-rw-r--r--libfdt/libfdt.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/libfdt/libfdt.h b/libfdt/libfdt.h
index 361cc6c..d2e5e03 100644
--- a/libfdt/libfdt.h
+++ b/libfdt/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