[coreboot-gerrit] Change in coreboot[master]: nb/via/vx900: Get rid of device_t

Elyes HAOUAS (Code Review) gerrit at coreboot.org
Tue Sep 18 12:22:15 CEST 2018


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


Change subject: nb/via/vx900: Get rid of device_t
......................................................................

nb/via/vx900: Get rid of device_t

Use of device_t is deprecated.

Change-Id: I70dcefd5bc9864931f66bece1f044f806f5d7ae0
Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
---
M src/northbridge/via/vx900/pci_util.c
M src/northbridge/via/vx900/vx900.h
2 files changed, 8 insertions(+), 8 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/55/28655/1

diff --git a/src/northbridge/via/vx900/pci_util.c b/src/northbridge/via/vx900/pci_util.c
index 1674e85..76d58bb 100644
--- a/src/northbridge/via/vx900/pci_util.c
+++ b/src/northbridge/via/vx900/pci_util.c
@@ -16,7 +16,7 @@
 
 #include "vx900.h"
 
-void dump_pci_device(device_t dev)
+void dump_pci_device(unsigned int dev)
 {
 	int i;
 	for (i = 0; i <= 0xff; i++) {
@@ -35,7 +35,7 @@
 	}
 }
 
-void pci_mod_config8(device_t dev, unsigned int where,
+void pci_mod_config8(unsigned int dev, unsigned int where,
 		     uint8_t clr_mask, uint8_t set_mask)
 {
 	uint8_t reg8 = pci_read_config8(dev, where);
@@ -44,7 +44,7 @@
 	pci_write_config8(dev, where, reg8);
 }
 
-void pci_mod_config16(device_t dev, unsigned int where,
+void pci_mod_config16(unsigned int dev, unsigned int where,
 		      uint16_t clr_mask, uint16_t set_mask)
 {
 	uint16_t reg16 = pci_read_config16(dev, where);
@@ -53,7 +53,7 @@
 	pci_write_config16(dev, where, reg16);
 }
 
-void pci_mod_config32(device_t dev, unsigned int where,
+void pci_mod_config32(unsigned int dev, unsigned int where,
 		      uint32_t clr_mask, uint32_t set_mask)
 {
 	uint32_t reg32 = pci_read_config32(dev, where);
diff --git a/src/northbridge/via/vx900/vx900.h b/src/northbridge/via/vx900/vx900.h
index cb7bca9..a2a360a 100644
--- a/src/northbridge/via/vx900/vx900.h
+++ b/src/northbridge/via/vx900/vx900.h
@@ -50,12 +50,12 @@
 void pci_mod_config32(pci_devfn_t dev, unsigned int where,
 		      uint32_t clr_mask, uint32_t set_mask);
 #else
-void dump_pci_device(device_t dev);
-void pci_mod_config8(device_t dev, unsigned int where,
+void dump_pci_device(struct device *dev);
+void pci_mod_config8(struct device *dev, unsigned int where,
 		     uint8_t clr_mask, uint8_t set_mask);
-void pci_mod_config16(device_t dev, unsigned int where,
+void pci_mod_config16(struct device *dev, unsigned int where,
 		      uint16_t clr_mask, uint16_t set_mask);
-void pci_mod_config32(device_t dev, unsigned int where,
+void pci_mod_config32(struct device *dev, unsigned int where,
 		      uint32_t clr_mask, uint32_t set_mask);
 #endif
 

-- 
To view, visit https://review.coreboot.org/28655
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: I70dcefd5bc9864931f66bece1f044f806f5d7ae0
Gerrit-Change-Number: 28655
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/20180918/3a767b8a/attachment.html>


More information about the coreboot-gerrit mailing list