diff options
author | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-11-08 10:20:19 +0000 |
---|---|---|
committer | Antonio Nino Diaz <antonio.ninodiaz@arm.com> | 2018-11-08 10:20:19 +0000 |
commit | c3cf06f1a3a9b9ee8ac7a0ae505f95c45f7dca84 (patch) | |
tree | a10cbb4dba8a33d5a444ed37486f013f19eab635 /include/tools_share | |
parent | f5ae1b0e098277a5b02a823a23f61577e53eadf2 (diff) |
Standardise header guards across codebase
All identifiers, regardless of use, that start with two underscores are
reserved. This means they can't be used in header guards.
The style that this project is now to use the full name of the file in
capital letters followed by 'H'. For example, for a file called
"uart_example.h", the header guard is UART_EXAMPLE_H.
The exceptions are files that are imported from other projects:
- CryptoCell driver
- dt-bindings folders
- zlib headers
Change-Id: I50561bf6c88b491ec440d0c8385c74650f3c106e
Signed-off-by: Antonio Nino Diaz <antonio.ninodiaz@arm.com>
Diffstat (limited to 'include/tools_share')
-rw-r--r-- | include/tools_share/firmware_image_package.h | 6 | ||||
-rw-r--r-- | include/tools_share/tbbr_oid.h | 6 | ||||
-rw-r--r-- | include/tools_share/uuid.h | 6 |
3 files changed, 9 insertions, 9 deletions
diff --git a/include/tools_share/firmware_image_package.h b/include/tools_share/firmware_image_package.h index b1ce56af..9f586b0a 100644 --- a/include/tools_share/firmware_image_package.h +++ b/include/tools_share/firmware_image_package.h @@ -4,8 +4,8 @@ * SPDX-License-Identifier: BSD-3-Clause */ -#ifndef __FIRMWARE_IMAGE_PACKAGE_H__ -#define __FIRMWARE_IMAGE_PACKAGE_H__ +#ifndef FIRMWARE_IMAGE_PACKAGE_H +#define FIRMWARE_IMAGE_PACKAGE_H #include <stdint.h> #include <uuid.h> @@ -88,4 +88,4 @@ typedef struct fip_toc_entry { uint64_t flags; } fip_toc_entry_t; -#endif /* __FIRMWARE_IMAGE_PACKAGE_H__ */ +#endif /* FIRMWARE_IMAGE_PACKAGE_H */ diff --git a/include/tools_share/tbbr_oid.h b/include/tools_share/tbbr_oid.h index b0b95e42..6bccfdd1 100644 --- a/include/tools_share/tbbr_oid.h +++ b/include/tools_share/tbbr_oid.h @@ -4,8 +4,8 @@ * SPDX-License-Identifier: BSD-3-Clause */ -#ifndef __TBBR_OID_H__ -#define __TBBR_OID_H__ +#ifndef TBBR_OID_H +#define TBBR_OID_H /* * The following is a list of OID values defined and reserved by ARM, which @@ -145,4 +145,4 @@ /* NonTrustedFirmwareConfigHash - NT_FW_CONFIG */ #define NON_TRUSTED_FW_CONFIG_HASH_OID "1.3.6.1.4.1.4128.2100.1202" -#endif /* __TBBR_OID_H__ */ +#endif /* TBBR_OID_H */ diff --git a/include/tools_share/uuid.h b/include/tools_share/uuid.h index f3ac4af5..7d004320 100644 --- a/include/tools_share/uuid.h +++ b/include/tools_share/uuid.h @@ -31,8 +31,8 @@ * All rights reserved. */ -#ifndef _SYS_UUID_H_ -#define _SYS_UUID_H_ +#ifndef UUID_H +#define UUID_H /* Length of a node address (an IEEE 802 address). */ #define _UUID_NODE_LEN 6 @@ -59,4 +59,4 @@ struct uuid { /* XXX namespace pollution? */ typedef struct uuid uuid_t; -#endif /* _SYS_UUID_H_ */ +#endif /* UUID_H */ |