diff options
author | Ira W. Snyder <iws@ovro.caltech.edu> | 2009-09-23 16:59:44 -0400 |
---|---|---|
committer | Jean Delvare <khali@linux-fr.org> | 2009-09-23 16:59:44 -0400 |
commit | 58f055e5314856a3badfa61fe144347903488989 (patch) | |
tree | 2a2dd026a39a610565e4b715272afa4c86142281 /drivers/hwmon | |
parent | b6b9d69602aec2c869dd2ca730aab2cc58473c2d (diff) |
hwmon: (ltc4245) Clear faults at startup
When power is applied to the ltc4245 chip it sometimes reports spurious
faults, which are exposed as alarms in the hwmon output. Clear the fault
register when the driver is installed to clear the alarms.
Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/hwmon')
-rw-r--r-- | drivers/hwmon/ltc4245.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/hwmon/ltc4245.c b/drivers/hwmon/ltc4245.c index 034b2c515848..e38964333612 100644 --- a/drivers/hwmon/ltc4245.c +++ b/drivers/hwmon/ltc4245.c | |||
@@ -382,7 +382,8 @@ static int ltc4245_probe(struct i2c_client *client, | |||
382 | mutex_init(&data->update_lock); | 382 | mutex_init(&data->update_lock); |
383 | 383 | ||
384 | /* Initialize the LTC4245 chip */ | 384 | /* Initialize the LTC4245 chip */ |
385 | /* TODO */ | 385 | i2c_smbus_write_byte_data(client, LTC4245_FAULT1, 0x00); |
386 | i2c_smbus_write_byte_data(client, LTC4245_FAULT2, 0x00); | ||
386 | 387 | ||
387 | /* Register sysfs hooks */ | 388 | /* Register sysfs hooks */ |
388 | ret = sysfs_create_group(&client->dev.kobj, <c4245_group); | 389 | ret = sysfs_create_group(&client->dev.kobj, <c4245_group); |