summaryrefslogtreecommitdiff
path: root/src/southbridge/nvidia/ck804/smbus.c
diff options
context:
space:
mode:
authorElyes HAOUAS <ehaouas@noos.fr>2018-05-19 10:57:04 +0200
committerKyösti Mälkki <kyosti.malkki@gmail.com>2018-05-21 14:02:20 +0000
commit1cbe19f2d8f394ff866a2536162a7b1900ba49c7 (patch)
tree7996ed636146c20d4db90c7bdfb41143dd813593 /src/southbridge/nvidia/ck804/smbus.c
parent8349cb58de2fb4e23d3054491a9398c9c66b5a62 (diff)
sb/nvidia/ck804: Get rid of device_t
Use of device_t has been abandoned in ramstage. Change-Id: I59078ff96428d134f108ff2551556c8a7d2d3b37 Signed-off-by: Elyes HAOUAS <ehaouas@noos.fr> Reviewed-on: https://review.coreboot.org/26401 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Patrick Rudolph <siro@das-labor.org>
Diffstat (limited to 'src/southbridge/nvidia/ck804/smbus.c')
-rw-r--r--src/southbridge/nvidia/ck804/smbus.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/southbridge/nvidia/ck804/smbus.c b/src/southbridge/nvidia/ck804/smbus.c
index e3b38dd98b..4a4ac2f6e5 100644
--- a/src/southbridge/nvidia/ck804/smbus.c
+++ b/src/southbridge/nvidia/ck804/smbus.c
@@ -24,7 +24,7 @@
#include "chip.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;
@@ -38,7 +38,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;
@@ -52,7 +52,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;
@@ -66,7 +66,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;