]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (ltc4215) Clear faults at startup
authorIra W. Snyder <iws@ovro.caltech.edu>
Wed, 23 Sep 2009 20:59:43 +0000 (22:59 +0200)
committerJean Delvare <khali@linux-fr.org>
Wed, 23 Sep 2009 20:59:43 +0000 (22:59 +0200)
commite8b19f86532535af9cc68c37603c5e5e6622b0c9
treee7085614270a07f5cd63e24a2bb8f3b134a49a25
parentcd994f70654e058c9a5b573692bafa1b08f9c18d
hwmon: (ltc4215) Clear faults at startup

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>
drivers/hwmon/ltc4215.c