mb: Use 'unsigned int' to bare use of 'unsigned'

Change-Id: I3a8e077656df02912b4e67c3947bd5af054a18bf
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/28701
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
This commit is contained in:
Elyes HAOUAS 2018-09-20 17:33:50 +02:00 committed by Martin Roth
parent ae7bd1eb23
commit dd35e2c8a9
24 changed files with 32 additions and 32 deletions

View File

@ -54,7 +54,7 @@
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1) #define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
void activate_spd_rom(const struct mem_controller *ctrl); void activate_spd_rom(const struct mem_controller *ctrl);
int spd_read_byte(unsigned device, unsigned address); int spd_read_byte(unsigned int device, unsigned int address);
extern struct sys_info sysinfo_car; extern struct sys_info sysinfo_car;
void activate_spd_rom(const struct mem_controller *ctrl) void activate_spd_rom(const struct mem_controller *ctrl)

View File

@ -49,7 +49,7 @@
#include "cpu/amd/quadcore/quadcore.c" #include "cpu/amd/quadcore/quadcore.c"
void activate_spd_rom(const struct mem_controller *ctrl); void activate_spd_rom(const struct mem_controller *ctrl);
int spd_read_byte(unsigned device, unsigned address); int spd_read_byte(unsigned int device, unsigned int address);
extern struct sys_info sysinfo_car; extern struct sys_info sysinfo_car;
void activate_spd_rom(const struct mem_controller *ctrl) void activate_spd_rom(const struct mem_controller *ctrl)

View File

@ -55,7 +55,7 @@
#include "cpu/amd/quadcore/quadcore.c" #include "cpu/amd/quadcore/quadcore.c"
void activate_spd_rom(const struct mem_controller *ctrl); void activate_spd_rom(const struct mem_controller *ctrl);
int spd_read_byte(unsigned device, unsigned address); int spd_read_byte(unsigned int device, unsigned int address);
extern struct sys_info sysinfo_car; extern struct sys_info sysinfo_car;
void activate_spd_rom(const struct mem_controller *ctrl) { } void activate_spd_rom(const struct mem_controller *ctrl) { }

View File

@ -51,7 +51,7 @@
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1) #define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
void activate_spd_rom(const struct mem_controller *ctrl); void activate_spd_rom(const struct mem_controller *ctrl);
int spd_read_byte(unsigned device, unsigned address); int spd_read_byte(unsigned int device, unsigned int address);
extern struct sys_info sysinfo_car; extern struct sys_info sysinfo_car;
static void memreset_setup(void) static void memreset_setup(void)

View File

@ -53,7 +53,7 @@
#define SERIAL_DEV PNP_DEV(0x2e, IT8718F_SP1) #define SERIAL_DEV PNP_DEV(0x2e, IT8718F_SP1)
void activate_spd_rom(const struct mem_controller *ctrl); void activate_spd_rom(const struct mem_controller *ctrl);
int spd_read_byte(unsigned device, unsigned address); int spd_read_byte(unsigned int device, unsigned int address);
extern struct sys_info sysinfo_car; extern struct sys_info sysinfo_car;
void activate_spd_rom(const struct mem_controller *ctrl) { } void activate_spd_rom(const struct mem_controller *ctrl) { }

View File

@ -32,7 +32,7 @@
#define SERIAL_DEV PNP_DEV(0x2e, LPC47M10X2_SP1) #define SERIAL_DEV PNP_DEV(0x2e, LPC47M10X2_SP1)
int spd_read_byte(unsigned device, unsigned address) int spd_read_byte(unsigned int device, unsigned int address)
{ {
return smbus_read_byte(device, address); return smbus_read_byte(device, address);
} }

View File

@ -54,10 +54,10 @@
#define SERIAL_1_DEV PNP_DEV(0x2e, W83667HG_A_SP2) #define SERIAL_1_DEV PNP_DEV(0x2e, W83667HG_A_SP2)
void activate_spd_rom(const struct mem_controller *ctrl); void activate_spd_rom(const struct mem_controller *ctrl);
int spd_read_byte(unsigned device, unsigned address); int spd_read_byte(unsigned int device, unsigned int address);
extern struct sys_info sysinfo_car; extern struct sys_info sysinfo_car;
inline int spd_read_byte(unsigned device, unsigned address) inline int spd_read_byte(unsigned int device, unsigned int address)
{ {
return do_smbus_read_byte(SMBUS_AUX_IO_BASE, device, address); return do_smbus_read_byte(SMBUS_AUX_IO_BASE, device, address);
} }

View File

@ -59,10 +59,10 @@
#define GPIO3_DEV PNP_DEV(0x2e, W83627THG_GPIO3) #define GPIO3_DEV PNP_DEV(0x2e, W83627THG_GPIO3)
void activate_spd_rom(const struct mem_controller *ctrl); void activate_spd_rom(const struct mem_controller *ctrl);
int spd_read_byte(unsigned device, unsigned address); int spd_read_byte(unsigned int device, unsigned int address);
extern struct sys_info sysinfo_car; extern struct sys_info sysinfo_car;
int spd_read_byte(unsigned device, unsigned address) int spd_read_byte(unsigned int device, unsigned int address)
{ {
return smbus_read_byte(device, address); return smbus_read_byte(device, address);
} }

View File

@ -54,10 +54,10 @@
#define SERIAL_1_DEV PNP_DEV(0x2e, W83667HG_A_SP2) #define SERIAL_1_DEV PNP_DEV(0x2e, W83667HG_A_SP2)
void activate_spd_rom(const struct mem_controller *ctrl); void activate_spd_rom(const struct mem_controller *ctrl);
int spd_read_byte(unsigned device, unsigned address); int spd_read_byte(unsigned int device, unsigned int address);
extern struct sys_info sysinfo_car; extern struct sys_info sysinfo_car;
int spd_read_byte(unsigned device, unsigned address) int spd_read_byte(unsigned int device, unsigned int address)
{ {
return do_smbus_read_byte(SMBUS_AUX_IO_BASE, device, address); return do_smbus_read_byte(SMBUS_AUX_IO_BASE, device, address);
} }

View File

@ -55,7 +55,7 @@
#define GPIO_DEV PNP_DEV(0x2e, IT8712F_GPIO) #define GPIO_DEV PNP_DEV(0x2e, IT8712F_GPIO)
void activate_spd_rom(const struct mem_controller *ctrl); void activate_spd_rom(const struct mem_controller *ctrl);
int spd_read_byte(unsigned device, unsigned address); int spd_read_byte(unsigned int device, unsigned int address);
extern struct sys_info sysinfo_car; extern struct sys_info sysinfo_car;
void activate_spd_rom(const struct mem_controller *ctrl) { } void activate_spd_rom(const struct mem_controller *ctrl) { }

View File

@ -56,7 +56,7 @@
#define GPIO_DEV PNP_DEV(0x2e, IT8712F_GPIO) #define GPIO_DEV PNP_DEV(0x2e, IT8712F_GPIO)
void activate_spd_rom(const struct mem_controller *ctrl); void activate_spd_rom(const struct mem_controller *ctrl);
int spd_read_byte(unsigned device, unsigned address); int spd_read_byte(unsigned int device, unsigned int address);
extern struct sys_info sysinfo_car; extern struct sys_info sysinfo_car;
void activate_spd_rom(const struct mem_controller *ctrl) { } void activate_spd_rom(const struct mem_controller *ctrl) { }

View File

@ -55,7 +55,7 @@
#define SERIAL_DEV PNP_DEV(0x4e, IT8721F_SP1) #define SERIAL_DEV PNP_DEV(0x4e, IT8721F_SP1)
void activate_spd_rom(const struct mem_controller *ctrl); void activate_spd_rom(const struct mem_controller *ctrl);
int spd_read_byte(unsigned device, unsigned address); int spd_read_byte(unsigned int device, unsigned int address);
extern struct sys_info sysinfo_car; extern struct sys_info sysinfo_car;
void activate_spd_rom(const struct mem_controller *ctrl) void activate_spd_rom(const struct mem_controller *ctrl)

View File

@ -54,7 +54,7 @@
#define CLK_DEV PNP_DEV(0x2e, W83627HF_SP1) #define CLK_DEV PNP_DEV(0x2e, W83627HF_SP1)
void activate_spd_rom(const struct mem_controller *ctrl); void activate_spd_rom(const struct mem_controller *ctrl);
int spd_read_byte(unsigned device, unsigned address); int spd_read_byte(unsigned int device, unsigned int address);
extern struct sys_info sysinfo_car; extern struct sys_info sysinfo_car;
void activate_spd_rom(const struct mem_controller *ctrl) void activate_spd_rom(const struct mem_controller *ctrl)

View File

@ -52,7 +52,7 @@
#define GPIO_DEV PNP_DEV(0x2e, IT8718F_GPIO) #define GPIO_DEV PNP_DEV(0x2e, IT8718F_GPIO)
void activate_spd_rom(const struct mem_controller *ctrl); void activate_spd_rom(const struct mem_controller *ctrl);
int spd_read_byte(unsigned device, unsigned address); int spd_read_byte(unsigned int device, unsigned int address);
extern struct sys_info sysinfo_car; extern struct sys_info sysinfo_car;
void activate_spd_rom(const struct mem_controller *ctrl) { } void activate_spd_rom(const struct mem_controller *ctrl) { }

View File

@ -52,7 +52,7 @@
#define GPIO_DEV PNP_DEV(0x2e, IT8718F_GPIO) #define GPIO_DEV PNP_DEV(0x2e, IT8718F_GPIO)
void activate_spd_rom(const struct mem_controller *ctrl); void activate_spd_rom(const struct mem_controller *ctrl);
int spd_read_byte(unsigned device, unsigned address); int spd_read_byte(unsigned int device, unsigned int address);
extern struct sys_info sysinfo_car; extern struct sys_info sysinfo_car;
void activate_spd_rom(const struct mem_controller *ctrl) { } void activate_spd_rom(const struct mem_controller *ctrl) { }

View File

@ -55,7 +55,7 @@
#define GPIO_DEV PNP_DEV(0x2e, IT8718F_GPIO) #define GPIO_DEV PNP_DEV(0x2e, IT8718F_GPIO)
void activate_spd_rom(const struct mem_controller *ctrl); void activate_spd_rom(const struct mem_controller *ctrl);
int spd_read_byte(unsigned device, unsigned address); int spd_read_byte(unsigned int device, unsigned int address);
extern struct sys_info sysinfo_car; extern struct sys_info sysinfo_car;
void activate_spd_rom(const struct mem_controller *ctrl) { } void activate_spd_rom(const struct mem_controller *ctrl) { }

View File

@ -57,7 +57,7 @@
#define RTC_DEV PNP_DEV(0x4e, PC87417_RTC) #define RTC_DEV PNP_DEV(0x4e, PC87417_RTC)
void activate_spd_rom(const struct mem_controller *ctrl); void activate_spd_rom(const struct mem_controller *ctrl);
int spd_read_byte(unsigned device, unsigned address); int spd_read_byte(unsigned int device, unsigned int address);
extern struct sys_info sysinfo_car; extern struct sys_info sysinfo_car;
inline void activate_spd_rom(const struct mem_controller *ctrl) inline void activate_spd_rom(const struct mem_controller *ctrl)
@ -71,7 +71,7 @@ inline void activate_spd_rom(const struct mem_controller *ctrl)
outb((val & ~3) | ctrl->spd_switch_addr, 0xcd7); outb((val & ~3) | ctrl->spd_switch_addr, 0xcd7);
} }
inline int spd_read_byte(unsigned device, unsigned address) inline int spd_read_byte(unsigned int device, unsigned int address)
{ {
return smbus_read_byte(device, address); return smbus_read_byte(device, address);
} }

View File

@ -54,7 +54,7 @@
#define SERIAL_DEV PNP_DEV(0x2e, F71859_SP1) #define SERIAL_DEV PNP_DEV(0x2e, F71859_SP1)
void activate_spd_rom(const struct mem_controller *ctrl); void activate_spd_rom(const struct mem_controller *ctrl);
int spd_read_byte(unsigned device, unsigned address); int spd_read_byte(unsigned int device, unsigned int address);
extern struct sys_info sysinfo_car; extern struct sys_info sysinfo_car;
void activate_spd_rom(const struct mem_controller *ctrl) { } void activate_spd_rom(const struct mem_controller *ctrl) { }

View File

@ -59,7 +59,7 @@
#endif #endif
void activate_spd_rom(const struct mem_controller *ctrl); void activate_spd_rom(const struct mem_controller *ctrl);
int spd_read_byte(unsigned device, unsigned address); int spd_read_byte(unsigned int device, unsigned int address);
extern struct sys_info sysinfo_car; extern struct sys_info sysinfo_car;
void activate_spd_rom(const struct mem_controller *ctrl) { } void activate_spd_rom(const struct mem_controller *ctrl) { }

View File

@ -49,12 +49,12 @@
#define SERIAL_DEV PNP_DEV(0x2e, W83627EHG_SP1) #define SERIAL_DEV PNP_DEV(0x2e, W83627EHG_SP1)
void activate_spd_rom(const struct mem_controller *ctrl); void activate_spd_rom(const struct mem_controller *ctrl);
int spd_read_byte(unsigned device, unsigned address); int spd_read_byte(unsigned int device, unsigned int address);
extern struct sys_info sysinfo_car; extern struct sys_info sysinfo_car;
void activate_spd_rom(const struct mem_controller *ctrl) { } void activate_spd_rom(const struct mem_controller *ctrl) { }
inline int spd_read_byte(unsigned device, unsigned address) inline int spd_read_byte(unsigned int device, unsigned int address)
{ {
return smbus_read_byte(device, address); return smbus_read_byte(device, address);
} }

View File

@ -53,12 +53,12 @@
#define SUPERIO_DEV PNP_DEV(0x2e, 0) #define SUPERIO_DEV PNP_DEV(0x2e, 0)
void activate_spd_rom(const struct mem_controller *ctrl); void activate_spd_rom(const struct mem_controller *ctrl);
int spd_read_byte(unsigned device, unsigned address); int spd_read_byte(unsigned int device, unsigned int address);
extern struct sys_info sysinfo_car; extern struct sys_info sysinfo_car;
void activate_spd_rom(const struct mem_controller *ctrl) { } void activate_spd_rom(const struct mem_controller *ctrl) { }
inline int spd_read_byte(unsigned device, unsigned address) inline int spd_read_byte(unsigned int device, unsigned int address)
{ {
return smbus_read_byte(device, address); return smbus_read_byte(device, address);
} }

View File

@ -55,7 +55,7 @@
#define SMBUS_SWITCH2 0x72 #define SMBUS_SWITCH2 0x72
void activate_spd_rom(const struct mem_controller *ctrl); void activate_spd_rom(const struct mem_controller *ctrl);
int spd_read_byte(unsigned device, unsigned address); int spd_read_byte(unsigned int device, unsigned int address);
extern struct sys_info sysinfo_car; extern struct sys_info sysinfo_car;
inline void activate_spd_rom(const struct mem_controller *ctrl) inline void activate_spd_rom(const struct mem_controller *ctrl)
@ -64,7 +64,7 @@ inline void activate_spd_rom(const struct mem_controller *ctrl)
smbus_send_byte(SMBUS_SWITCH2, (5 >> 4) & 0x0f); smbus_send_byte(SMBUS_SWITCH2, (5 >> 4) & 0x0f);
} }
inline int spd_read_byte(unsigned device, unsigned address) inline int spd_read_byte(unsigned int device, unsigned int address)
{ {
return smbus_read_byte(device, address); return smbus_read_byte(device, address);
} }

View File

@ -51,7 +51,7 @@
#include "cpu/amd/quadcore/quadcore.c" #include "cpu/amd/quadcore/quadcore.c"
void activate_spd_rom(const struct mem_controller *ctrl); void activate_spd_rom(const struct mem_controller *ctrl);
int spd_read_byte(unsigned device, unsigned address); int spd_read_byte(unsigned int device, unsigned int address);
extern struct sys_info sysinfo_car; extern struct sys_info sysinfo_car;
void activate_spd_rom(const struct mem_controller *ctrl) void activate_spd_rom(const struct mem_controller *ctrl)

View File

@ -49,12 +49,12 @@
#define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1) #define SERIAL_DEV PNP_DEV(0x2e, W83627HF_SP1)
void activate_spd_rom(const struct mem_controller *ctrl); void activate_spd_rom(const struct mem_controller *ctrl);
int spd_read_byte(unsigned device, unsigned address); int spd_read_byte(unsigned int device, unsigned int address);
extern struct sys_info sysinfo_car; extern struct sys_info sysinfo_car;
void activate_spd_rom(const struct mem_controller *ctrl) { } void activate_spd_rom(const struct mem_controller *ctrl) { }
inline int spd_read_byte(unsigned device, unsigned address) inline int spd_read_byte(unsigned int device, unsigned int address)
{ {
return smbus_read_byte(device, address); return smbus_read_byte(device, address);
} }