summaryrefslogtreecommitdiff
path: root/src/device/smbus_ops.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-05-02 21:26:01 +0200
committerPatrick Georgi <pgeorgi@google.com>2018-05-04 10:17:08 +0000
commit2f119a31f7405495d8528075b5274c37be2da0a7 (patch)
tree4816786dcecc2694e8a6f73c6dd4809afee1c3ef /src/device/smbus_ops.c
parente18cbea8f5523347bc567a4399c11040d64793c3 (diff)
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@noos.fr> Reviewed-on: https://review.coreboot.org/26005 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/device/smbus_ops.c')
-rw-r--r--src/device/smbus_ops.c8
1 files changed, 4 insertions, 4 deletions
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 <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 @@ 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);