<p>HAOUAS Elyes has uploaded this change for <strong>review</strong>.</p><p><a href="https://review.coreboot.org/c/coreboot/+/30010">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">include/device/smbus.h: Don't use device_t<br><br>Use of device_t is deprecated.<br><br>Change-Id: I76088d9ebfa0bb1edcb73c29e0e8023d489bb5a9<br>Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr><br>---<br>M src/include/device/smbus.h<br>1 file changed, 7 insertions(+), 3 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/30010/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/include/device/smbus.h b/src/include/device/smbus.h</span><br><span>index 639e938..621300d 100644</span><br><span>--- a/src/include/device/smbus.h</span><br><span>+++ b/src/include/device/smbus.h</span><br><span>@@ -51,9 +51,13 @@</span><br><span>        return i2c_dev_writeb_at(dev, addr, val);</span><br><span> }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-int smbus_block_read(device_t dev, u8 cmd, u8 bytes, u8 *buffer);</span><br><span style="color: hsl(0, 100%, 40%);">-int smbus_block_write(device_t dev, u8 cmd, u8 bytes, const u8 *buffer);</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span style="color: hsl(120, 100%, 40%);">+#ifdef __SIMPLE_DEVICE__</span><br><span style="color: hsl(120, 100%, 40%);">+int smbus_block_read(pci_devfn_t dev, u8 cmd, u8 bytes, u8 *buffer);</span><br><span style="color: hsl(120, 100%, 40%);">+int smbus_block_write(pci_devfn_t dev, u8 cmd, u8 bytes, const u8 *buffer);</span><br><span style="color: hsl(120, 100%, 40%);">+#else</span><br><span style="color: hsl(120, 100%, 40%);">+int smbus_block_read(struct device *dev, u8 cmd, u8 bytes, u8 *buffer);</span><br><span style="color: hsl(120, 100%, 40%);">+int smbus_block_write(struct device *dev, u8 cmd, u8 bytes, const u8 *buffer);</span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span> #if IS_ENABLED(CONFIG_SMBUS_HAS_AUX_CHANNELS)</span><br><span> void smbus_switch_to_channel(uint8_t channel_number);</span><br><span> uint8_t smbus_get_current_channel(void);</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/c/coreboot/+/30010">change 30010</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/c/coreboot/+/30010"/><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-Change-Id: I76088d9ebfa0bb1edcb73c29e0e8023d489bb5a9 </div>
<div style="display:none"> Gerrit-Change-Number: 30010 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: HAOUAS Elyes <ehaouas@noos.fr> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>