[coreboot-gerrit] Change in coreboot[master]: {device, drivers}: Use 'unsigned int' to bare use of 'unsigned'

Elyes HAOUAS (Code Review) gerrit at coreboot.org
Thu Sep 20 17:52:50 CEST 2018


Elyes HAOUAS has uploaded this change for review. ( https://review.coreboot.org/28700


Change subject: {device,drivers}: Use 'unsigned int' to bare use of 'unsigned'
......................................................................

{device,drivers}: Use 'unsigned int' to bare use of 'unsigned'

Change-Id: Iebb043a6fbc5803fbb7cad2f35b43917e10d09d4
Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
---
M src/device/pci_device.c
M src/drivers/ricoh/rce822/rce822.c
2 files changed, 3 insertions(+), 2 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/00/28700/1

diff --git a/src/device/pci_device.c b/src/device/pci_device.c
index b4a8a5c..e35c22c 100644
--- a/src/device/pci_device.c
+++ b/src/device/pci_device.c
@@ -726,7 +726,8 @@
 	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 b364946..a974811 100644
--- a/src/drivers/ricoh/rce822/rce822.c
+++ b/src/drivers/ricoh/rce822/rce822.c
@@ -39,7 +39,7 @@
 	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,

-- 
To view, visit https://review.coreboot.org/28700
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iebb043a6fbc5803fbb7cad2f35b43917e10d09d4
Gerrit-Change-Number: 28700
Gerrit-PatchSet: 1
Gerrit-Owner: Elyes HAOUAS <ehaouas at noos.fr>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.coreboot.org/pipermail/coreboot-gerrit/attachments/20180920/dbac60f0/attachment.html>


More information about the coreboot-gerrit mailing list