Since some people disapprove of white space cleanups mixed in regular commits
while others dislike them being extra commits, let's clean them up once and for all for the existing code. If it's ugly, let it only be ugly once :-) Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5507 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
committed by
Stefan Reinauer
parent
0e1e8065e3
commit
14e2277962
@ -27,10 +27,10 @@ static void adm1026_init(device_t dev)
|
||||
if (dev->enabled && dev->path.type == DEVICE_PATH_I2C)
|
||||
{
|
||||
if(ops_smbus_bus(get_pbus_smbus(dev))) {
|
||||
if( dev->bus->dev->path.type == DEVICE_PATH_I2C) smbus_set_link(dev); // it is under mux
|
||||
if( dev->bus->dev->path.type == DEVICE_PATH_I2C) smbus_set_link(dev); // it is under mux
|
||||
adm1026_enable_monitoring(dev);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -65,5 +65,5 @@ static void enable_dev(struct device *dev)
|
||||
|
||||
struct chip_operations drivers_i2c_adm1026_ops = {
|
||||
CHIP_NAME("adm1026")
|
||||
.enable_dev = enable_dev,
|
||||
.enable_dev = enable_dev,
|
||||
};
|
||||
|
@ -44,7 +44,7 @@ static void adm1027_init(device_t dev)
|
||||
if (dev->enabled && dev->path.type == DEVICE_PATH_I2C) {
|
||||
if (ops_smbus_bus(get_pbus_smbus(dev))) {
|
||||
if (dev->bus->dev->path.type == DEVICE_PATH_I2C)
|
||||
smbus_set_link(dev); // it is under mux
|
||||
smbus_set_link(dev); // it is under mux
|
||||
adm1027_enable_monitoring(dev);
|
||||
}
|
||||
|
||||
|
@ -15,7 +15,7 @@ static void i2cmux_set_link(device_t dev, unsigned int link)
|
||||
smbus_write_byte(dev, 0x01, 1<<link); // output value
|
||||
smbus_write_byte(dev, 0x03, 0); // all output
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -40,5 +40,5 @@ static void enable_dev(struct device *dev)
|
||||
|
||||
struct chip_operations drivers_i2c_i2cmux_ops = {
|
||||
CHIP_NAME("i2cmux")
|
||||
.enable_dev = enable_dev,
|
||||
.enable_dev = enable_dev,
|
||||
};
|
||||
|
@ -14,7 +14,7 @@ static void i2cmux2_set_link(device_t dev, unsigned int link)
|
||||
if(ops_smbus_bus(get_pbus_smbus(dev))) {
|
||||
smbus_send_byte(dev, link); // output value
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -39,5 +39,5 @@ static void enable_dev(struct device *dev)
|
||||
|
||||
struct chip_operations drivers_i2c_i2cmux2_ops = {
|
||||
CHIP_NAME("i2cmux2")
|
||||
.enable_dev = enable_dev,
|
||||
.enable_dev = enable_dev,
|
||||
};
|
||||
|
@ -14,13 +14,13 @@ static void lm63_init(device_t dev)
|
||||
if (dev->enabled && dev->path.type == DEVICE_PATH_I2C)
|
||||
{
|
||||
if(ops_smbus_bus(get_pbus_smbus(dev))) {
|
||||
if( dev->bus->dev->path.type == DEVICE_PATH_I2C) smbus_set_link(dev); // it is under mux
|
||||
if( dev->bus->dev->path.type == DEVICE_PATH_I2C) smbus_set_link(dev); // it is under mux
|
||||
result = smbus_read_byte(dev, 0x03);
|
||||
// result &= ~0x04;
|
||||
result |= 0x04;
|
||||
smbus_write_byte(dev, 0x03, result & 0xff); // config lm63
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
@ -42,5 +42,5 @@ static void enable_dev(struct device *dev)
|
||||
|
||||
struct chip_operations drivers_i2c_lm63_ops = {
|
||||
CHIP_NAME("National Semiconductor LM63")
|
||||
.enable_dev = enable_dev,
|
||||
.enable_dev = enable_dev,
|
||||
};
|
||||
|
Reference in New Issue
Block a user