]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit712227f692d7728900460a418c7a134697ececd5
tree90527fd825832c0d46693c3d338b7925e936768a
parent4179f42bb42d394a3045d6bc3151c626281bcb5f
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