hwmon: (ltc4215) make sysfs file match the alarm cause
authorIra W. Snyder <iws@ovro.caltech.edu>
Mon, 13 Dec 2010 16:42:30 +0000 (11:42 -0500)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Mon, 13 Dec 2010 17:54:50 +0000 (09:54 -0800)
commit0a6bf658c3b9d1d0e520d320b6392c8680c2e381
tree90527fd825832c0d46693c3d338b7925e936768a
parent6313e3c21743cc88bb5bd8aa72948ee1e83937b6
hwmon: (ltc4215) make sysfs file match the alarm cause

The ltc4215 driver used the chip's "power good" status bit to provide
the power1_alarm file. This is wrong: the chip is really reporting the
status of one of the monitored voltages.

Change the sysfs file from power1_alarm to in2_min_alarm instead. This
matches the voltage that the chip is raising an alarm for.

Signed-off-by: Ira W. Snyder <iws@ovro.caltech.edu>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/ltc4215.c