summaryrefslogtreecommitdiff
path: root/libfdt/fdt.h
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2017-10-18 17:22:40 +1100
committerDavid Gibson <david@gibson.dropbear.id.au>2017-10-26 09:25:14 +0200
commitc8b38f65fdec4226d43f0e8eb5cf541aff3c80a5 (patch)
treec48ddbd7590c3bb00c369debf44037cfc154278e /libfdt/fdt.h
parent3b62fdaebfe577566ff2387eb1c55344a7f55982 (diff)
downloaddevice-tree-compiler-c8b38f65fdec4226d43f0e8eb5cf541aff3c80a5.tar.gz
libfdt: Remove leading underscores from identifiers
In a lot of places libfdt uses a leading _ character to mark an identifier as "internal" (not part of the published libfdt API). This is a bad idea, because identifiers with a leading _ are generally reserved by the C library or system. It's particularly dangerous for libfdt, because it's designed to be able to be integrated into lots of different environments. In some cases the leading _ has no purpose, so we simply drop it. In most cases we move it to the end, as our new convention for marking internal identifiers. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'libfdt/fdt.h')
-rw-r--r--libfdt/fdt.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/libfdt/fdt.h b/libfdt/fdt.h
index 526aedb..74961f9 100644
--- a/libfdt/fdt.h
+++ b/libfdt/fdt.h
@@ -1,5 +1,5 @@
-#ifndef _FDT_H
-#define _FDT_H
+#ifndef FDT_H
+#define FDT_H
/*
* libfdt - Flat Device Tree manipulation
* Copyright (C) 2006 David Gibson, IBM Corporation.
@@ -108,4 +108,4 @@ struct fdt_property {
#define FDT_V16_SIZE FDT_V3_SIZE
#define FDT_V17_SIZE (FDT_V16_SIZE + sizeof(fdt32_t))
-#endif /* _FDT_H */
+#endif /* FDT_H */