Hi all,
This is a trivial patch that cleans up whitespace in
src/drivers/i2c/adm1027/adm1027.c, basically the result of running
indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs adm1027.c
as per http://linuxbios.org/Development_Guidelines
I have another patch to fix fan control for this chip, which I'll submit when
this one gets merged.
Thanks,
Ward.
--
Ward Vandewege <[EMAIL PROTECTED]>
Free Software Foundation - Senior System Administrator
Clean up whitespace in preparation for another patch to fix fan control.
This is nothing more than the result of running
indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs adm1027.c
Signed-off-by: Ward Vandewege <[EMAIL PROTECTED]>
Index: adm1027.c
===================================================================
--- adm1027.c (revision 2662)
+++ adm1027.c (working copy)
@@ -21,33 +21,33 @@
#define ADM1027_REG_CONFIG3 0x78
static void adm1027_enable_monitoring(device_t dev)
-{
- int result;
- result = smbus_read_byte(dev, ADM1027_REG_CONFIG1);
-
- if(!(result & CFG1_RDY) ) {
+{
+ int result;
+ result = smbus_read_byte(dev, ADM1027_REG_CONFIG1);
+
+ if (!(result & CFG1_RDY)) {
printk_debug("ADM1027: monitoring not ready\r\n");
return;
}
- result = (result | CFG1_STRT);
- result = smbus_write_byte(dev, ADM1027_REG_CONFIG1, result);
-
- result = smbus_read_byte(dev, ADM1027_REG_CONFIG1);
- if (!(result & CFG1_STRT)) {
- printk_debug("ADM1027: monitoring would not enable\r\n");
- }
+ result = (result | CFG1_STRT);
+ result = smbus_write_byte(dev, ADM1027_REG_CONFIG1, result);
+
+ result = smbus_read_byte(dev, ADM1027_REG_CONFIG1);
+ if (!(result & CFG1_STRT)) {
+ printk_debug("ADM1027: monitoring would not enable\r\n");
+ }
printk_debug("ADM1027: monitoring enabled\r\n");
}
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
+ 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
adm1027_enable_monitoring(dev);
}
-
+
}
}
@@ -56,10 +56,10 @@
}
static struct device_operations adm1027_operations = {
- .read_resources = adm1027_noop,
- .set_resources = adm1027_noop,
- .enable_resources = adm1027_noop,
- .init = adm1027_init,
+ .read_resources = adm1027_noop,
+ .set_resources = adm1027_noop,
+ .enable_resources = adm1027_noop,
+ .init = adm1027_init,
};
static void enable_dev(struct device *dev)
@@ -69,5 +69,5 @@
struct chip_operations drivers_i2c_adm1027_ops = {
CHIP_NAME("adm1027")
- .enable_dev = enable_dev,
+ .enable_dev = enable_dev,
};
--
linuxbios mailing list
[email protected]
http://www.linuxbios.org/mailman/listinfo/linuxbios