<p>Patrick Georgi <strong>merged</strong> this change.</p><p><a href="https://review.coreboot.org/c/coreboot/+/29914">View Change</a></p><div style="white-space:pre-wrap">Approvals:
  build bot (Jenkins): Verified
  Patrick Georgi: Looks good to me, approved

</div><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: I2c88642133d3cbf33015e3e1e855fb2c786878d6<br>Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr><br>Reviewed-on: https://review.coreboot.org/c/29914<br>Tested-by: build bot (Jenkins) <no-reply@coreboot.org><br>Reviewed-by: Patrick Georgi <pgeorgi@google.com><br>---<br>M src/include/device/smbus.h<br>1 file changed, 9 insertions(+), 8 deletions(-)<br><br></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 50857fe..639e938 100644</span><br><span>--- a/src/include/device/smbus.h</span><br><span>+++ b/src/include/device/smbus.h</span><br><span>@@ -8,12 +8,13 @@</span><br><span> </span><br><span> /* Common SMBus bus operations */</span><br><span> struct smbus_bus_operations {</span><br><span style="color: hsl(0, 100%, 40%);">-   int    (*recv_byte)(device_t dev);</span><br><span style="color: hsl(0, 100%, 40%);">-      int    (*send_byte)(device_t dev, u8 value);</span><br><span style="color: hsl(0, 100%, 40%);">-    int    (*read_byte)(device_t dev, u8 addr);</span><br><span style="color: hsl(0, 100%, 40%);">-     int   (*write_byte)(device_t dev, u8 addr, u8 value);</span><br><span style="color: hsl(0, 100%, 40%);">-   int   (*block_read)(device_t dev, u8 cmd, u8 bytes, u8 *buffer);</span><br><span style="color: hsl(0, 100%, 40%);">-        int  (*block_write)(device_t dev, u8 cmd, u8 bytes, const u8 *buffer);</span><br><span style="color: hsl(120, 100%, 40%);">+        int (*recv_byte)(struct device *dev);</span><br><span style="color: hsl(120, 100%, 40%);">+ int (*send_byte)(struct device *dev, u8 value);</span><br><span style="color: hsl(120, 100%, 40%);">+       int (*read_byte)(struct device *dev, u8 addr);</span><br><span style="color: hsl(120, 100%, 40%);">+        int (*write_byte)(struct device *dev, u8 addr, u8 value);</span><br><span style="color: hsl(120, 100%, 40%);">+     int (*block_read)(struct device *dev, u8 cmd, u8 bytes, u8 *buffer);</span><br><span style="color: hsl(120, 100%, 40%);">+  int (*block_write)(struct device *dev, u8 cmd, u8 bytes,</span><br><span style="color: hsl(120, 100%, 40%);">+                         const u8 *buffer);</span><br><span> };</span><br><span> </span><br><span> static inline const struct smbus_bus_operations *ops_smbus_bus(struct bus *bus)</span><br><span>@@ -27,8 +28,8 @@</span><br><span>       return bops;</span><br><span> }</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-struct bus *get_pbus_smbus(device_t dev);</span><br><span style="color: hsl(0, 100%, 40%);">-int smbus_set_link(device_t dev);</span><br><span style="color: hsl(120, 100%, 40%);">+struct bus *get_pbus_smbus(struct device *dev);</span><br><span style="color: hsl(120, 100%, 40%);">+int smbus_set_link(struct device *dev);</span><br><span> </span><br><span> static inline int smbus_recv_byte(struct device *const dev)</span><br><span> {</span><br><span></span><br></pre><p>To view, visit <a href="https://review.coreboot.org/c/coreboot/+/29914">change 29914</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/+/29914"/><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: I2c88642133d3cbf33015e3e1e855fb2c786878d6 </div>
<div style="display:none"> Gerrit-Change-Number: 29914 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: HAOUAS Elyes <ehaouas@noos.fr> </div>
<div style="display:none"> Gerrit-Reviewer: Patrick Georgi <pgeorgi@google.com> </div>
<div style="display:none"> Gerrit-Reviewer: build bot (Jenkins) <no-reply@coreboot.org> </div>
<div style="display:none"> Gerrit-MessageType: merged </div>