<p>Elyes HAOUAS has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/27010">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">src/device/hypertransport.c: Get rid of device_t<br><br>Change-Id: I9cebfc5c77187bd81094031c43ff6df094908417<br>Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr><br>---<br>M src/device/hypertransport.c<br>1 file changed, 7 insertions(+), 7 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://review.coreboot.org:29418/coreboot refs/changes/10/27010/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/device/hypertransport.c b/src/device/hypertransport.c</span><br><span>index 472adfc..75e1820 100644</span><br><span>--- a/src/device/hypertransport.c</span><br><span>+++ b/src/device/hypertransport.c</span><br><span>@@ -34,9 +34,9 @@</span><br><span>         unsigned char ctrl_off, config_off, freq_off, freq_cap_off;</span><br><span> };</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-static device_t ht_scan_get_devs(device_t *old_devices)</span><br><span style="color: hsl(120, 100%, 40%);">+static struct device *ht_scan_get_devs(struct device **old_devices)</span><br><span> {</span><br><span style="color: hsl(0, 100%, 40%);">-  device_t first, last;</span><br><span style="color: hsl(120, 100%, 40%);">+ struct device *first, *last;</span><br><span> </span><br><span>     first = *old_devices;</span><br><span>        last = first;</span><br><span>@@ -53,7 +53,7 @@</span><br><span>    }</span><br><span> </span><br><span>        if (first) {</span><br><span style="color: hsl(0, 100%, 40%);">-            device_t child;</span><br><span style="color: hsl(120, 100%, 40%);">+               struct device *child;</span><br><span> </span><br><span>            /* Unlink the chain from the list of old devices. */</span><br><span>                 *old_devices = last->sibling;</span><br><span>@@ -73,7 +73,7 @@</span><br><span>         return first;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-static int ht_setup_link(struct ht_link *prev, device_t dev, unsigned pos)</span><br><span style="color: hsl(120, 100%, 40%);">+static int ht_setup_link(struct ht_link *prev, struct device *dev, unsigned pos)</span><br><span> {</span><br><span>      struct ht_link cur[1];</span><br><span>       int linkb_to_host;</span><br><span>@@ -256,7 +256,7 @@</span><br><span>      * optimize link.</span><br><span>     */</span><br><span>  unsigned int next_unitid, last_unitid, min_unitid, max_unitid;</span><br><span style="color: hsl(0, 100%, 40%);">-  device_t old_devices, dev, func, last_func = 0;</span><br><span style="color: hsl(120, 100%, 40%);">+       struct device *old_devices, *dev, *func, *last_func = NULL;</span><br><span>  struct ht_link prev;</span><br><span>         int ht_dev_num = 0;</span><br><span> </span><br><span>@@ -271,7 +271,7 @@</span><br><span>         */</span><br><span>  unsigned int real_last_unitid = 0, end_used = 0;</span><br><span>     u8 real_last_pos = 0;</span><br><span style="color: hsl(0, 100%, 40%);">-   device_t real_last_dev = NULL;</span><br><span style="color: hsl(120, 100%, 40%);">+        struct device *real_last_dev = NULL;</span><br><span> #endif</span><br><span> </span><br><span>   /* Restore the hypertransport chain to it's uninitialized state. */</span><br><span>@@ -458,7 +458,7 @@</span><br><span>         * a problem in devicetree.cb.</span><br><span>        */</span><br><span>  if (old_devices) {</span><br><span style="color: hsl(0, 100%, 40%);">-              device_t left;</span><br><span style="color: hsl(120, 100%, 40%);">+                struct device *left;</span><br><span>                 for (left = old_devices; left; left = left->sibling)</span><br><span>                      printk(BIOS_DEBUG, "%s\n", dev_path(left));</span><br><span> </span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/27010">change 27010</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://review.coreboot.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://review.coreboot.org/27010"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: coreboot </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I9cebfc5c77187bd81094031c43ff6df094908417 </div>
<div style="display:none"> Gerrit-Change-Number: 27010 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Elyes HAOUAS <ehaouas@noos.fr> </div>