Commit c3cf06f1 authored by Antonio Nino Diaz's avatar Antonio Nino Diaz
Browse files

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: default avatarAntonio Nino Diaz <antonio.ninodiaz@arm.com>
parent f5ae1b0e
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef PFC_INIT_E3_H__ #ifndef PFC_INIT_E3_H
#define PFC_INIT_E3_H__ #define PFC_INIT_E3_H
void pfc_init_e3(void); void pfc_init_e3(void);
#endif /* PFC_INIT_E3_H__ */ #endif /* PFC_INIT_E3_H */
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef PFC_INIT_H3_V1_H__ #ifndef PFC_INIT_H3_V1_H
#define PFC_INIT_H3_V1_H__ #define PFC_INIT_H3_V1_H
void pfc_init_h3_v1(void); void pfc_init_h3_v1(void);
#endif /* PFC_INIT_H3_V1_H__ */ #endif /* PFC_INIT_H3_V1_H */
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef PFC_INIT_H3_V2_H__ #ifndef PFC_INIT_H3_V2_H
#define PFC_INIT_H3_V2_H__ #define PFC_INIT_H3_V2_H
void pfc_init_h3_v2(void); void pfc_init_h3_v2(void);
#endif /* PFC_INIT_H3_V2_H__ */ #endif /* PFC_INIT_H3_V2_H */
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef PFC_INIT_M3_H__ #ifndef PFC_INIT_M3_H
#define PFC_INIT_M3_H__ #define PFC_INIT_M3_H
void pfc_init_m3(void); void pfc_init_m3(void);
#endif /* PFC_INIT_M3_H__ */ #endif /* PFC_INIT_M3_H */
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef PFC_INIT_M3N_H__ #ifndef PFC_INIT_M3N_H
#define PFC_INIT_M3N_H__ #define PFC_INIT_M3N_H
void pfc_init_m3n(void); void pfc_init_m3n(void);
#endif /* PFC_INIT_M3N_H__ */ #endif /* PFC_INIT_M3N_H */
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef QOS_INIT_H_E3_V10__ #ifndef QOS_INIT_E3_V10_H
#define QOS_INIT_H_E3_V10__ #define QOS_INIT_E3_V10_H
void qos_init_e3_v10(void); void qos_init_e3_v10(void);
#endif /* QOS_INIT_H_E3_V10__ */ #endif /* QOS_INIT_E3_V10_H */
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef QOS_INIT_H_H3_V10__ #ifndef QOS_INIT_H3_V10_H
#define QOS_INIT_H_H3_V10__ #define QOS_INIT_H3_V10_H
void qos_init_h3_v10(void); void qos_init_h3_v10(void);
#endif /* QOS_INIT_H_H3_V10__ */ #endif /* QOS_INIT_H3_V10_H */
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef QOS_INIT_H_H3_V11__ #ifndef QOS_INIT_H3_V11_H
#define QOS_INIT_H_H3_V11__ #define QOS_INIT_H3_V11_H
void qos_init_h3_v11(void); void qos_init_h3_v11(void);
#endif /* QOS_INIT_H_H3_V11__ */ #endif /* QOS_INIT_H3_V11_H */
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef QOS_INIT_H_H3_V20__ #ifndef QOS_INIT_H3_V20_H
#define QOS_INIT_H_H3_V20__ #define QOS_INIT_H3_V20_H
void qos_init_h3_v20(void); void qos_init_h3_v20(void);
#endif /* QOS_INIT_H_H3_V20__ */ #endif /* QOS_INIT_H3_V20_H */
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef QOS_INIT_H_H3_V30__ #ifndef QOS_INIT_H3_V30_H
#define QOS_INIT_H_H3_V30__ #define QOS_INIT_H3_V30_H
void qos_init_h3_v30(void); void qos_init_h3_v30(void);
#endif /* QOS_INIT_H_H3_V20__ */ #endif /* QOS_INIT_H3_V30_H */
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef QOS_INIT_H_H3N_V30__ #ifndef QOS_INIT_H3N_V30_H
#define QOS_INIT_H_H3N_V30__ #define QOS_INIT_H3N_V30_H
void qos_init_h3n_v30(void); void qos_init_h3n_v30(void);
#endif /* QOS_INIT_H_H3N_V30__ */ #endif /* QOS_INIT_H3N_V30_H */
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef QOS_INIT_H_M3_V10__ #ifndef QOS_INIT_M3_V10_H
#define QOS_INIT_H_M3_V10__ #define QOS_INIT_M3_V10_H
void qos_init_m3_v10(void); void qos_init_m3_v10(void);
#endif /* QOS_INIT_H_M3_V10__ */ #endif /* QOS_INIT_M3_V10_H */
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef QOS_INIT_H_M3_V11__ #ifndef QOS_INIT_M3_V11_H
#define QOS_INIT_H_M3_V11__ #define QOS_INIT_M3_V11_H
void qos_init_m3_v11(void); void qos_init_m3_v11(void);
#endif /* QOS_INIT_H_M3_V11__ */ #endif /* QOS_INIT_M3_V11_H */
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef QOS_INIT_H_M3N_V10__ #ifndef QOS_INIT_M3N_V10_H
#define QOS_INIT_H_M3N_V10__ #define QOS_INIT_M3N_V10_H
void qos_init_m3n_v10(void); void qos_init_m3n_v10(void);
#endif /* QOS_INIT_H_M3N_V10__ */ #endif /* QOS_INIT_M3N_V10_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef QOS_COMMON_H_ #ifndef QOS_COMMON_H
#define QOS_COMMON_H_ #define QOS_COMMON_H
#define RCAR_REF_DEFAULT (0U) #define RCAR_REF_DEFAULT (0U)
...@@ -110,4 +110,4 @@ typedef struct { ...@@ -110,4 +110,4 @@ typedef struct {
extern uint32_t qos_init_ddr_ch; extern uint32_t qos_init_ddr_ch;
extern uint8_t qos_init_ddr_phyvalid; extern uint8_t qos_init_ddr_phyvalid;
#endif /* QOS_COMMON_H_ */ #endif /* QOS_COMMON_H */
...@@ -4,10 +4,10 @@ ...@@ -4,10 +4,10 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef QOS_INIT_H_ #ifndef QOS_INIT_H
#define QOS_INIT_H_ #define QOS_INIT_H
extern void rcar_qos_init(void); extern void rcar_qos_init(void);
extern uint8_t get_boardcnf_phyvalid(void); extern uint8_t get_boardcnf_phyvalid(void);
#endif /* QOS_INIT_H_ */ #endif /* QOS_INIT_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef QOS_REG_H_ #ifndef QOS_REG_H
#define QOS_REG_H_ #define QOS_REG_H
#define RCAR_QOS_NONE (3U) #define RCAR_QOS_NONE (3U)
#define RCAR_QOS_TYPE_DEFAULT (0U) #define RCAR_QOS_TYPE_DEFAULT (0U)
...@@ -118,4 +118,4 @@ ...@@ -118,4 +118,4 @@
#define QOSWT_WTSET0 (QOS_BASE0 + 0x8038U) #define QOSWT_WTSET0 (QOS_BASE0 + 0x8038U)
#define QOSWT_WTSET1 (QOS_BASE0 + 0x803CU) #define QOSWT_WTSET1 (QOS_BASE0 + 0x803CU)
#endif /* QOS_REG_H_ */ #endif /* QOS_REG_H */
...@@ -4,8 +4,8 @@ ...@@ -4,8 +4,8 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __BL1_FWU_H__ #ifndef BL1_H
#define __BL1_FWU_H__ #define BL1_H
#include <bl_common.h> #include <bl_common.h>
...@@ -97,4 +97,4 @@ void bl1_calc_bl2_mem_layout(const meminfo_t *bl1_mem_layout, ...@@ -97,4 +97,4 @@ void bl1_calc_bl2_mem_layout(const meminfo_t *bl1_mem_layout,
meminfo_t *bl2_mem_layout); meminfo_t *bl2_mem_layout);
#endif /* __ASSEMBLY__ */ #endif /* __ASSEMBLY__ */
#endif /* __BL1_FWU_H__ */ #endif /* BL1_H */
...@@ -4,11 +4,11 @@ ...@@ -4,11 +4,11 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef __TBBR_IMG_DESC_H__ #ifndef TBBR_IMG_DESC_H
#define __TBBR_IMG_DESC_H__ #define TBBR_IMG_DESC_H
#include <bl_common.h> #include <bl_common.h>
extern image_desc_t bl1_tbbr_image_descs[]; extern image_desc_t bl1_tbbr_image_descs[];
#endif /* __TBBR_IMG_DESC_H__ */ #endif /* TBBR_IMG_DESC_H */
...@@ -4,9 +4,9 @@ ...@@ -4,9 +4,9 @@
* SPDX-License-Identifier: BSD-3-Clause * SPDX-License-Identifier: BSD-3-Clause
*/ */
#ifndef BL2_H__ #ifndef BL2_H
#define BL2_H__ #define BL2_H
void bl2_main(void); void bl2_main(void);
#endif /* BL2_H__ */ #endif /* BL2_H */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment