diff options
author | Elyes HAOUAS <ehaouas@noos.fr> | 2018-09-21 11:42:09 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2018-10-24 10:01:55 +0000 |
commit | 78d338ccb9ca9d03e516c27beb3724be38d38ecf (patch) | |
tree | 060bbd99d4974a8250b7e19040d67518b2072623 /src/southbridge/amd/amd8111/acpi.c | |
parent | 17ad4598e9d3d302cc45c86a8e11aac62928c83c (diff) |
sb/amd: Use 'unsigned int' to bare use of 'unsigned'
Change-Id: I05f9ea97ea80ac7a8f34845c59bd66e424ba2991
Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr>
Reviewed-on: https://review.coreboot.org/28709
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'src/southbridge/amd/amd8111/acpi.c')
-rw-r--r-- | src/southbridge/amd/amd8111/acpi.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/southbridge/amd/amd8111/acpi.c b/src/southbridge/amd/amd8111/acpi.c index da7a1d8086..8dc2007500 100644 --- a/src/southbridge/amd/amd8111/acpi.c +++ b/src/southbridge/amd/amd8111/acpi.c @@ -36,7 +36,7 @@ static int lsmbus_recv_byte(struct device *dev) { - unsigned device; + unsigned int device; struct resource *res; device = dev->path.i2c.device; @@ -47,7 +47,7 @@ static int lsmbus_recv_byte(struct device *dev) static int lsmbus_send_byte(struct device *dev, uint8_t val) { - unsigned device; + unsigned int device; struct resource *res; device = dev->path.i2c.device; @@ -59,7 +59,7 @@ static int lsmbus_send_byte(struct device *dev, uint8_t val) static int lsmbus_read_byte(struct device *dev, uint8_t address) { - unsigned device; + unsigned int device; struct resource *res; device = dev->path.i2c.device; @@ -70,7 +70,7 @@ static int lsmbus_read_byte(struct device *dev, uint8_t address) static int lsmbus_write_byte(struct device *dev, uint8_t address, uint8_t val) { - unsigned device; + unsigned int device; struct resource *res; device = dev->path.i2c.device; @@ -82,7 +82,7 @@ static int lsmbus_write_byte(struct device *dev, uint8_t address, uint8_t val) static int lsmbus_block_read(struct device *dev, uint8_t cmd, u8 bytes, u8 *buffer) { - unsigned device; + unsigned int device; struct resource *res; device = dev->path.i2c.device; @@ -94,7 +94,7 @@ static int lsmbus_block_read(struct device *dev, uint8_t cmd, u8 bytes, static int lsmbus_block_write(struct device *dev, uint8_t cmd, u8 bytes, const u8 *buffer) { - unsigned device; + unsigned int device; struct resource *res; device = dev->path.i2c.device; @@ -217,8 +217,8 @@ static void acpi_enable_resources(struct device *dev) } -static void lpci_set_subsystem(struct device *dev, unsigned vendor, - unsigned device) +static void lpci_set_subsystem(struct device *dev, unsigned int vendor, + unsigned int device) { pci_write_config32(dev, 0x7c, ((device & 0xffff) << 16) | (vendor & 0xffff)); |