summaryrefslogtreecommitdiff
path: root/src/southbridge/nvidia/mcp55/smbus.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-05-19 10:55:18 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2018-05-21 20:26:34 +0000
commit1df39c3aca25bd6822bbd1c3146a4880f9fe2620 (patch)
tree3e874282b700681d257298681f75d91fb4721673 /src/southbridge/nvidia/mcp55/smbus.c
parentbcb124e0098156b0d7f03589cf631aa3738a0dae (diff)
nvidia/mcp55: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: I48ab6d77be0201ac7b49b26e0366b6e3a1e5ac52 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26400 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Diffstat (limited to 'src/southbridge/nvidia/mcp55/smbus.c')
-rw-r--r--src/southbridge/nvidia/mcp55/smbus.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/southbridge/nvidia/mcp55/smbus.c b/src/southbridge/nvidia/mcp55/smbus.c
index c41445bcab..244759dfa3 100644
--- a/src/southbridge/nvidia/mcp55/smbus.c
+++ b/src/southbridge/nvidia/mcp55/smbus.c
@@ -27,7 +27,7 @@
#include "mcp55.h"
#include "smbus.h"
-static int lsmbus_recv_byte(device_t dev)
+static int lsmbus_recv_byte(struct device *dev)
{
unsigned device;
struct resource *res;
@@ -41,7 +41,7 @@ static int lsmbus_recv_byte(device_t dev)
return do_smbus_recv_byte(res->base, device);
}
-static int lsmbus_send_byte(device_t dev, u8 val)
+static int lsmbus_send_byte(struct device *dev, u8 val)
{
unsigned device;
struct resource *res;
@@ -55,7 +55,7 @@ static int lsmbus_send_byte(device_t dev, u8 val)
return do_smbus_send_byte(res->base, device, val);
}
-static int lsmbus_read_byte(device_t dev, u8 address)
+static int lsmbus_read_byte(struct device *dev, u8 address)
{
unsigned device;
struct resource *res;
@@ -69,7 +69,7 @@ static int lsmbus_read_byte(device_t dev, u8 address)
return do_smbus_read_byte(res->base, device, address);
}
-static int lsmbus_write_byte(device_t dev, u8 address, u8 val)
+static int lsmbus_write_byte(struct device *dev, u8 address, u8 val)
{
unsigned device;
struct resource *res;
@@ -93,7 +93,7 @@ static struct smbus_bus_operations lops_smbus_bus = {
unsigned pm_base;
#endif
-static void mcp55_sm_read_resources(device_t dev)
+static void mcp55_sm_read_resources(struct device *dev)
{
unsigned long index;
@@ -106,7 +106,7 @@ static void mcp55_sm_read_resources(device_t dev)
compact_resources(dev);
}
-static void mcp55_sm_init(device_t dev)
+static void mcp55_sm_init(struct device *dev)
{
#if IS_ENABLED(CONFIG_HAVE_ACPI_TABLES)
struct resource *res;