[coreboot-gerrit] Change in coreboot[master]: device/root_device.c: Get rid of device_t
Elyes HAOUAS (Code Review)
gerrit at coreboot.org
Wed May 2 21:38:20 CEST 2018
Elyes HAOUAS has uploaded this change for review. ( https://review.coreboot.org/26008
Change subject: device/root_device.c: Get rid of device_t
......................................................................
device/root_device.c: Get rid of device_t
Use of `device_t` has been abandoned in ramstage.
Change-Id: Ia25c5097d4cfa979c18a855e656ad794c2f0260c
Signed-off-by: Elyes HAOUAS <ehaouas at noos.fr>
---
M src/device/root_device.c
1 file changed, 7 insertions(+), 7 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/08/26008/1
diff --git a/src/device/root_device.c b/src/device/root_device.c
index 8e98593..a19028d 100644
--- a/src/device/root_device.c
+++ b/src/device/root_device.c
@@ -43,9 +43,9 @@
* @param bus Pointer to the device to which the static buses are attached to.
*/
-void scan_static_bus(device_t bus)
+void scan_static_bus(struct device *bus)
{
- device_t child;
+ struct device *child;
struct bus *link;
for (link = bus->link_list; link; link = link->next) {
@@ -63,7 +63,7 @@
}
}
-void scan_lpc_bus(device_t bus)
+void scan_lpc_bus(struct device *bus)
{
printk(BIOS_SPEW, "%s for %s\n", __func__, dev_path(bus));
@@ -72,9 +72,9 @@
printk(BIOS_SPEW, "%s for %s done\n", __func__, dev_path(bus));
}
-void scan_generic_bus(device_t bus)
+void scan_generic_bus(struct device *bus)
{
- device_t child;
+ struct device *child;
struct bus *link;
static int bus_max = 0;
@@ -103,7 +103,7 @@
printk(BIOS_SPEW, "%s for %s done\n", __func__, dev_path(bus));
}
-void scan_smbus(device_t bus)
+void scan_smbus(struct device *bus)
{
scan_generic_bus(bus);
}
@@ -115,7 +115,7 @@
*
* @param root The root device structure.
*/
-static void root_dev_scan_bus(device_t bus)
+static void root_dev_scan_bus(struct device *bus)
{
struct bus *link;
--
To view, visit https://review.coreboot.org/26008
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: Ia25c5097d4cfa979c18a855e656ad794c2f0260c
Gerrit-Change-Number: 26008
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/3ad860e9/attachment.html>
More information about the coreboot-gerrit
mailing list