diff mbox series

[3/3] asm/u-boot.h: remove bd_t definitions

Message ID 20200626061335.1611120-3-masahiroy@kernel.org
State New
Headers show
Series [1/3] treewide: convert bd_t to struct bd_info by coccinelle | expand

Commit Message

Masahiro Yamada June 26, 2020, 6:13 a.m. UTC
All the users of bd_t were converted to struct bd_info.

Remove the definitions.

Signed-off-by: Masahiro Yamada <masahiroy at kernel.org>
---

 arch/nds32/include/asm/u-boot.h | 5 ++---
 arch/riscv/include/asm/u-boot.h | 5 ++---
 include/asm-generic/u-boot.h    | 4 ++--
 3 files changed, 6 insertions(+), 8 deletions(-)
diff mbox series

Patch

diff --git a/arch/nds32/include/asm/u-boot.h b/arch/nds32/include/asm/u-boot.h
index 8c949e7fb7..815cb93030 100644
--- a/arch/nds32/include/asm/u-boot.h
+++ b/arch/nds32/include/asm/u-boot.h
@@ -21,8 +21,7 @@ 
 
 #include <asm/u-boot-nds32.h>
 
-
-typedef struct bd_info {
+struct bd_info {
 	unsigned long	bi_arch_number;	/* unique id for this board */
 	unsigned long	bi_boot_params;	/* where this board expects params */
 	unsigned long	bi_memstart;	/* start of DRAM memory */
@@ -37,7 +36,7 @@  typedef struct bd_info {
 		unsigned long start;
 		unsigned long size;
 	} bi_dram[CONFIG_NR_DRAM_BANKS];
-} bd_t;
+};
 
 /* For image.h:image_check_target_arch() */
 #define IH_ARCH_DEFAULT IH_ARCH_NDS32
diff --git a/arch/riscv/include/asm/u-boot.h b/arch/riscv/include/asm/u-boot.h
index 5ba8e77812..dac20bffda 100644
--- a/arch/riscv/include/asm/u-boot.h
+++ b/arch/riscv/include/asm/u-boot.h
@@ -20,8 +20,7 @@ 
 
 #include <asm/u-boot-riscv.h>
 
-
-typedef struct bd_info {
+struct bd_info {
 	unsigned long	bi_boot_params;	/* where this board expects params */
 	unsigned long	bi_memstart;	/* start of DRAM memory */
 	unsigned long	bi_memsize;	/* size	 of DRAM memory in bytes */
@@ -35,7 +34,7 @@  typedef struct bd_info {
 		unsigned long start;
 		unsigned long size;
 	} bi_dram[CONFIG_NR_DRAM_BANKS];
-} bd_t;
+};
 
 /* For image.h:image_check_target_arch() */
 #define IH_ARCH_DEFAULT IH_ARCH_RISCV
diff --git a/include/asm-generic/u-boot.h b/include/asm-generic/u-boot.h
index 6f749736f1..4bf06fb379 100644
--- a/include/asm-generic/u-boot.h
+++ b/include/asm-generic/u-boot.h
@@ -26,7 +26,7 @@ 
 #include <asm/types.h>
 #include <linux/types.h>
 
-typedef struct bd_info {
+struct bd_info {
 	unsigned long	bi_memstart;	/* start of DRAM memory */
 	phys_size_t	bi_memsize;	/* size	 of DRAM memory in bytes */
 	unsigned long	bi_flashstart;	/* start of FLASH memory */
@@ -94,7 +94,7 @@  typedef struct bd_info {
 		phys_size_t size;
 	} bi_dram[CONFIG_NR_DRAM_BANKS];
 #endif /* CONFIG_NR_DRAM_BANKS */
-} bd_t;
+};
 
 #endif /* __ASSEMBLY__ */