diff mbox

[U-Boot,02/14] avr32: Change bi_baudrate and global data baudrate to int

Message ID 1350087681-16442-3-git-send-email-sjg@chromium.org
State Accepted, archived
Delegated to: Tom Rini
Headers show

Commit Message

Simon Glass Oct. 13, 2012, 12:21 a.m. UTC
These don't need to be longs, so change them.

Signed-off-by: Simon Glass <sjg@chromium.org>
---
 arch/avr32/include/asm/global_data.h |    2 +-
 arch/avr32/include/asm/u-boot.h      |    2 +-
 common/cmd_bdinfo.c                  |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

Comments

Andreas Bießmann Oct. 17, 2012, 7:22 a.m. UTC | #1
On 13.10.2012 02:21, Simon Glass wrote:
> These don't need to be longs, so change them.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>

Acked-by: Andreas Bießmann <andreas.devel@googlemail.com>

> ---
>  arch/avr32/include/asm/global_data.h |    2 +-
>  arch/avr32/include/asm/u-boot.h      |    2 +-
>  common/cmd_bdinfo.c                  |    2 +-
>  3 files changed, 3 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/arch/avr32/include/asm/global_data.h b/arch/avr32/include/asm/global_data.h
index 7878bb1..bf661e2 100644
--- a/arch/avr32/include/asm/global_data.h
+++ b/arch/avr32/include/asm/global_data.h
@@ -33,7 +33,7 @@ 
 typedef	struct	global_data {
 	bd_t		*bd;
 	unsigned long	flags;
-	unsigned long	baudrate;
+	unsigned int	baudrate;
 	unsigned long	stack_end;	/* highest stack address */
 	unsigned long	have_console;	/* serial_init() was called */
 #ifdef CONFIG_PRE_CONSOLE_BUFFER
diff --git a/arch/avr32/include/asm/u-boot.h b/arch/avr32/include/asm/u-boot.h
index 1d2959a..97bbbde 100644
--- a/arch/avr32/include/asm/u-boot.h
+++ b/arch/avr32/include/asm/u-boot.h
@@ -23,7 +23,7 @@ 
 #define __ASM_U_BOOT_H__ 1
 
 typedef struct bd_info {
-	unsigned long		bi_baudrate;
+	unsigned int		bi_baudrate;
 	unsigned char		bi_phy_id[4];
 	unsigned long		bi_board_number;
 	void			*bi_boot_params;
diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c
index 698826c..138693e 100644
--- a/common/cmd_bdinfo.c
+++ b/common/cmd_bdinfo.c
@@ -344,7 +344,7 @@  int do_bdinfo(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
 	print_eth(0);
 	printf("ip_addr     = %s\n", getenv("ipaddr"));
-	printf("baudrate    = %lu bps\n", bd->bi_baudrate);
+	printf("baudrate    = %u bps\n", bd->bi_baudrate);
 
 	return 0;
 }