From 2f119a31f7405495d8528075b5274c37be2da0a7 Mon Sep 17 00:00:00 2001 From: Elyes HAOUAS Date: Wed, 2 May 2018 21:26:01 +0200 Subject: 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 Reviewed-on: https://review.coreboot.org/26005 Tested-by: build bot (Jenkins) Reviewed-by: Patrick Georgi --- src/device/smbus_ops.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/device/smbus_ops.c b/src/device/smbus_ops.c index 2a8670272b..c91f415e6c 100644 --- a/src/device/smbus_ops.c +++ b/src/device/smbus_ops.c @@ -20,7 +20,7 @@ #include #include -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 @@ struct bus *get_pbus_smbus(device_t dev) * * @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 @@ int smbus_set_link(device_t dev) 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 @@ int smbus_block_read(device_t dev, u8 cmd, u8 bytes, u8 *buffer) 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); -- cgit v1.2.3