From 88030b722dfa31291aa263ff54e4d59431d4557b Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Thu, 20 Sep 2018 17:26:10 +0200 Subject: [PATCH] {device,drivers}: Use 'unsigned int' to bare use of 'unsigned' Change-Id: Iebb043a6fbc5803fbb7cad2f35b43917e10d09d4 Signed-off-by: Elyes HAOUAS Reviewed-on: https://review.coreboot.org/28700 Reviewed-by: Stefan Reinauer Tested-by: build bot (Jenkins) --- src/device/pci_device.c | 3 ++- src/drivers/ricoh/rce822/rce822.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/device/pci_device.c b/src/device/pci_device.c index b4a8a5ce0e..e35c22c113 100644 --- a/src/device/pci_device.c +++ b/src/device/pci_device.c @@ -726,7 +726,8 @@ void pci_bus_reset(struct bus *bus) delay(1); } -void pci_dev_set_subsystem(struct device *dev, unsigned vendor, unsigned device) +void pci_dev_set_subsystem(struct device *dev, unsigned int vendor, + unsigned int device) { pci_write_config32(dev, PCI_SUBSYSTEM_VENDOR_ID, ((device & 0xffff) << 16) | (vendor & 0xffff)); diff --git a/src/drivers/ricoh/rce822/rce822.c b/src/drivers/ricoh/rce822/rce822.c index b364946e56..297dd61606 100644 --- a/src/drivers/ricoh/rce822/rce822.c +++ b/src/drivers/ricoh/rce822/rce822.c @@ -39,7 +39,8 @@ static void rce822_init(struct device *dev) pci_write_config8(dev, 0xf9, 0x00); } -static void rce822_set_subsystem(struct device *dev, unsigned vendor, unsigned device) +static void rce822_set_subsystem(struct device *dev, unsigned int vendor, + unsigned int device) { if (!vendor || !device) { pci_write_config32(dev, 0xac,