summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/i82801jx/smbus.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/southbridge/intel/i82801jx/smbus.c')
-rw-r--r--src/southbridge/intel/i82801jx/smbus.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/southbridge/intel/i82801jx/smbus.c b/src/southbridge/intel/i82801jx/smbus.c
index c92a2864a0..c3a798a4e4 100644
--- a/src/southbridge/intel/i82801jx/smbus.c
+++ b/src/southbridge/intel/i82801jx/smbus.c
@@ -29,7 +29,7 @@ static int lsmbus_read_byte(struct device *dev, u8 address)
return do_smbus_read_byte(res->base, device, address);
}
-static int lsmbus_write_byte(struct device *dev, u8 address, u8 val)
+static int lsmbus_write_byte(struct device *dev, u8 address, u8 data)
{
u16 device;
struct resource *res;
@@ -39,7 +39,7 @@ static int lsmbus_write_byte(struct device *dev, u8 address, u8 val)
pbus = get_pbus_smbus(dev);
res = find_resource(pbus->dev, PCI_BASE_ADDRESS_4);
- return do_smbus_write_byte(res->base, device, address, val);
+ return do_smbus_write_byte(res->base, device, address, data);
}
static int lsmbus_block_write(struct device *dev, u8 cmd, u8 bytes,