From af454994ea047111d3d94f4d07b04901ce767c80 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Tue, 4 Sep 2007 16:51:54 +0000 Subject: [PATCH] Fix the smsc47m192 temperature faults. The standard name for these files changed recently. Fallback to the old name for compatibility. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4753 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 1 + lib/chips.c | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/CHANGES b/CHANGES index 99a2a7d8..a4f70bc1 100644 --- a/CHANGES +++ b/CHANGES @@ -11,6 +11,7 @@ SVN HEAD Fix maxilife support for Linux 2.6 Fix magnitude of temperature offsets in Linux 2.6 Fix adm1026 critical temperature limits for Linux 2.6 + Fix smsc47m192 temperature faults Makefile: Fix kernel version detection (#2187) Module fscher: Add missing read of control register (2.6 backport) Module i2c-piix4: Add ATI SB700 and SB800 support (2.6 backport) diff --git a/lib/chips.c b/lib/chips.c index ad95499f..835c8078 100644 --- a/lib/chips.c +++ b/lib/chips.c @@ -4833,12 +4833,12 @@ static sensors_chip_feature smsc47m192_features[] = { { SENSORS_SMSC47M192_TEMP_ALARM(3), "temp3_alarm", SENSORS_SMSC47M192_TEMP(3), NOMAP, R }, NOSYSCTL, VALUE(1), 0 }, - { { SENSORS_SMSC47M192_TEMP_FAULT(2), "temp2_input_fault", + { { SENSORS_SMSC47M192_TEMP_FAULT(2), "temp2_fault", SENSORS_SMSC47M192_TEMP(2), NOMAP, R }, - NOSYSCTL, VALUE(1), 0 }, - { { SENSORS_SMSC47M192_TEMP_FAULT(3), "temp3_input_fault", + NOSYSCTL, VALUE(1), 0, "temp2_fault", 0, "temp2_input_fault" }, + { { SENSORS_SMSC47M192_TEMP_FAULT(3), "temp3_fault", SENSORS_SMSC47M192_TEMP(3), NOMAP, R }, - NOSYSCTL, VALUE(1), 0 }, + NOSYSCTL, VALUE(1), 0, "temp3_fault", 0, "temp3_input_fault" }, { { SENSORS_SMSC47M192_VID, "vid", NOMAP, NOMAP, R }, NOSYSCTL, VALUE(1), 3 }, { { SENSORS_SMSC47M192_VRM, "vrm", NOMAP, NOMAP, RW },