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>
This commit is contained in:
parent
be404c22aa
commit
bb19d39487
|
@ -40,7 +40,7 @@ static int lsmbus_read_byte(struct device *dev, u8 address)
|
||||||
return do_smbus_read_byte(res->base, device, 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;
|
u16 device;
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
|
@ -50,7 +50,7 @@ static int lsmbus_write_byte(struct device *dev, u8 address, u8 val)
|
||||||
pbus = get_pbus_smbus(dev);
|
pbus = get_pbus_smbus(dev);
|
||||||
res = find_resource(pbus->dev, PCI_BASE_ADDRESS_4);
|
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 struct smbus_bus_operations lops_smbus_bus = {
|
static struct smbus_bus_operations lops_smbus_bus = {
|
||||||
|
|
|
@ -29,7 +29,7 @@ static int lsmbus_read_byte(struct device *dev, u8 address)
|
||||||
return do_smbus_read_byte(res->base, device, 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;
|
u16 device;
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
|
@ -39,7 +39,7 @@ static int lsmbus_write_byte(struct device *dev, u8 address, u8 val)
|
||||||
pbus = get_pbus_smbus(dev);
|
pbus = get_pbus_smbus(dev);
|
||||||
res = find_resource(pbus->dev, PCI_BASE_ADDRESS_4);
|
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 struct smbus_bus_operations lops_smbus_bus = {
|
static struct smbus_bus_operations lops_smbus_bus = {
|
||||||
|
|
|
@ -29,7 +29,7 @@ static int lsmbus_read_byte(struct device *dev, u8 address)
|
||||||
return do_smbus_read_byte(res->base, device, 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;
|
u16 device;
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
|
@ -39,7 +39,7 @@ static int lsmbus_write_byte(struct device *dev, u8 address, u8 val)
|
||||||
pbus = get_pbus_smbus(dev);
|
pbus = get_pbus_smbus(dev);
|
||||||
res = find_resource(pbus->dev, PCI_BASE_ADDRESS_4);
|
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,
|
static int lsmbus_block_write(struct device *dev, u8 cmd, u8 bytes,
|
||||||
|
|
|
@ -39,7 +39,7 @@ static int lsmbus_read_byte(struct device *dev, u8 address)
|
||||||
return do_smbus_read_byte(res->base, device, 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;
|
u16 device;
|
||||||
struct resource *res;
|
struct resource *res;
|
||||||
|
@ -49,7 +49,7 @@ static int lsmbus_write_byte(struct device *dev, u8 address, u8 val)
|
||||||
pbus = get_pbus_smbus(dev);
|
pbus = get_pbus_smbus(dev);
|
||||||
res = find_resource(pbus->dev, PCI_BASE_ADDRESS_4);
|
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 struct smbus_bus_operations lops_smbus_bus = {
|
static struct smbus_bus_operations lops_smbus_bus = {
|
||||||
|
|
Loading…
Reference in New Issue