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

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


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


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

device/smbus_ops.c: Get rid of device_t

Use of `device_t` has been abandoned in ramstage.

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



  git pull ssh://review.coreboot.org:29418/coreboot refs/changes/05/26005/1

diff --git a/src/device/smbus_ops.c b/src/device/smbus_ops.c
index 2a86702..c91f415 100644
--- a/src/device/smbus_ops.c
+++ b/src/device/smbus_ops.c
@@ -20,7 +20,7 @@
 #include <device/device.h>
 #include <device/smbus.h>
 
-struct bus *get_pbus_smbus(device_t dev)
+struct bus *get_pbus_smbus(struct device *dev)
 {
 	struct bus *const pbus = i2c_link(dev);
 	if (!pbus->dev->ops->ops_smbus_bus) {
@@ -40,7 +40,7 @@
  *
  * @param dev TODO.
  */
-int smbus_set_link(device_t dev)
+int smbus_set_link(struct device *dev)
 {
 	struct bus *pbus_a[4]; // 4 level mux only. Enough?
 	struct bus *pbus = dev->bus;
@@ -75,7 +75,7 @@
 		return -1;				       \
 	}
 
-int smbus_block_read(device_t dev, u8 cmd, u8 bytes, u8 *buffer)
+int smbus_block_read(struct device *dev, u8 cmd, u8 bytes, u8 *buffer)
 {
 	CHECK_PRESENCE(block_read);
 
@@ -83,7 +83,7 @@
 							      bytes, buffer);
 }
 
-int smbus_block_write(device_t dev, u8 cmd, u8 bytes, const u8 *buffer)
+int smbus_block_write(struct device *dev, u8 cmd, u8 bytes, const u8 *buffer)
 {
 	CHECK_PRESENCE(block_write);
 

-- 
To view, visit https://review.coreboot.org/26005
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: I5eb858df7b69a7177564c883b81177ffadc63691
Gerrit-Change-Number: 26005
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/600b8a6b/attachment.html>


More information about the coreboot-gerrit mailing list