[coreboot-gerrit] Change in coreboot[master]: device/pci_class.c: Get rid of device_t

Elyes HAOUAS (Code Review) gerrit at coreboot.org
Wed May 2 21:34:19 CEST 2018


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


Change subject: device/pci_class.c: Get rid of device_t
......................................................................

device/pci_class.c: Get rid of device_t

Use of `device_t` has been abandoned in ramstage.

Change-Id: I839533a33aa54df4efed3f372c6f88e79b0b559b
Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
---
M src/device/pci_class.c
1 file changed, 3 insertions(+), 3 deletions(-)



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/07/26007/1

diff --git a/src/device/pci_class.c b/src/device/pci_class.c
index 6dbe23e..b2f5ff7 100644
--- a/src/device/pci_class.c
+++ b/src/device/pci_class.c
@@ -220,7 +220,7 @@
 };
 static const unsigned int class_entries = ARRAY_SIZE(class_list);
 
-static const PCI_CLASS *get_pci_class_entry(device_t dev)
+static const PCI_CLASS *get_pci_class_entry(struct device *dev)
 {
 	unsigned char class;
 	const PCI_CLASS *class_entry;
@@ -240,7 +240,7 @@
 	return NULL;
 }
 
-const char *get_pci_class_name(device_t dev)
+const char *get_pci_class_name(struct device *dev)
 {
 	const PCI_CLASS *class_entry;
 
@@ -248,7 +248,7 @@
 	return class_entry ? class_entry->class_name : "???";
 }
 
-const char *get_pci_subclass_name(device_t dev)
+const char *get_pci_subclass_name(struct device *dev)
 {
 	const PCI_CLASS *class_entry;
 	unsigned char subclass;

-- 
To view, visit https://review.coreboot.org/26007
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: I839533a33aa54df4efed3f372c6f88e79b0b559b
Gerrit-Change-Number: 26007
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/20180502/4ef78ed5/attachment.html>


More information about the coreboot-gerrit mailing list