summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/i82801jx
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2020-12-05 20:23:40 +0100
committerAngel Pons <th3fanbus@gmail.com>2020-12-10 15:54:37 +0000
commitbb19d39487e4c71c29313e711bf3684d815263e6 (patch)
tree542c5fb65b2640cdf23ecc53dff47274e18e3e69 /src/southbridge/intel/i82801jx
parentbe404c22aa8d9675d1b4b62fd188aee5aef01f88 (diff)
sb/intel/x/smbus.c: Rename parameter
This is for consistency among the various southbridges. Change-Id: Id0dcfeef6e220861212ce665201ce8cd31f3b054 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/48362 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/southbridge/intel/i82801jx')
-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,