Skip to content

Commit

Permalink
hwmon: (ltc4215) Clear faults at startup
Browse files Browse the repository at this point in the history
When power is applied to the ltc4215 chip it sometimes reports spurious
faults. The faults are not yet exposed via sysfs, however it may be useful
for userspace to read the fault register directly with the i2cget command.
Clear the fault register when the driver is installed so userspace doesn't
have to worry about spurious fault indications.

Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
  • Loading branch information
Ira W. Snyder authored and Jean Delvare committed Sep 23, 2009
1 parent fa08acd commit b6b9d69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/hwmon/ltc4215.c
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ static int ltc4215_probe(struct i2c_client *client,
mutex_init(&data->update_lock);

/* Initialize the LTC4215 chip */
/* TODO */
i2c_smbus_write_byte_data(client, LTC4215_FAULT, 0x00);

/* Register sysfs hooks */
ret = sysfs_create_group(&client->dev.kobj, &ltc4215_group);
Expand Down

0 comments on commit b6b9d69

Please sign in to comment.