From fb037bfb7cbf7b404c069b4ebac5a10059d948b1 Mon Sep 17 00:00:00 2001 From: Dan Handley Date: Thu, 10 Apr 2014 15:37:22 +0100 Subject: Always use named structs in header files Add tag names to all unnamed structs in header files. This allows forward declaration of structs, which is necessary to reduce header file nesting (to be implemented in a subsequent commit). Also change the typedef names across the codebase to use the _t suffix to be more conformant with the Linux coding style. The coding style actually prefers us not to use typedefs at all but this is considered a step too far for Trusted Firmware. Also change the IO framework structs defintions to use typedef'd structs to be consistent with the rest of the codebase. Change-Id: I722b2c86fc0d92e4da3b15e5cab20373dd26786f --- bl1/bl1_main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bl1/bl1_main.c') diff --git a/bl1/bl1_main.c b/bl1/bl1_main.c index 57a8a1a1..05af75a8 100644 --- a/bl1/bl1_main.c +++ b/bl1/bl1_main.c @@ -51,8 +51,8 @@ void bl1_main(void) #endif unsigned long bl2_base; unsigned int load_type = TOP_LOAD, spsr; - meminfo *bl1_tzram_layout; - meminfo *bl2_tzram_layout = 0x0; + meminfo_t *bl1_tzram_layout; + meminfo_t *bl2_tzram_layout = 0x0; /* * Ensure that MMU/Caches and coherency are turned on @@ -87,7 +87,7 @@ void bl1_main(void) * to BL2. BL2 will read the memory layout before using its * memory for other purposes. */ - bl2_tzram_layout = (meminfo *) bl1_tzram_layout->free_base; + bl2_tzram_layout = (meminfo_t *) bl1_tzram_layout->free_base; init_bl2_mem_layout(bl1_tzram_layout, bl2_tzram_layout, load_type, -- cgit v1.2.3