From f8287b30bd4fdbb0e47ee086bc82ce245e99d689 Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Fri, 23 Feb 2001 01:02:35 +0000 Subject: [PATCH] fix swapped limit and hysteresis on adm9240, sis5595, and via686a. Thanks Karl Schmidt git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1029 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 10 ++++++---- prog/sensors/chips.c | 10 +++++----- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/CHANGES b/CHANGES index 9594aea3..24438cd5 100644 --- a/CHANGES +++ b/CHANGES @@ -22,10 +22,10 @@ ask CVS about it: If your make fails because it can't find , you forgot this step!!! Also, mkpatch is probably broken right now. - File doc/FAQ: Updates + File doc/FAQ: Many updates and additions File doc/chips/via686a: Claim support for 686b. File sensors.conf.eg: Adjust as99127f in5 (-12V) and temp2 calculations - File sensors.conf.eg: Add lm87 template; enhance help comments in file + Add lm87 template; enhance help comments in file File sensors.c: Add xxx_init() calls for drivers added to mkpatch in 2.5.5. Include file i2c-isa.h: No longer required, moved to i2c.h in i2c package Include file sensors.h: Most contents moved to i2c-proc.h in i2c package @@ -36,13 +36,15 @@ ask CVS about it: Module lm78: Recognize chipid=0x20 Module lm87: Fix in0, in1 (2.5V and Vccp1) calculations Module mtp008: Fix temp2 max initialization + Save BIOS pin configuration of temps and fans Module sensors: Disabled, moved to i2c package as i2c-proc.c Module via686a: Allow force=9191,address (for A7V/K7V boards) Program mkpatch.pl: Fix adm9240 typos, add more chips to Configure.help Program sensord: Add -d (debug) and -p (pid-file) options Program sensors: Change reported version from 1.3 to the lm_sensors version. + Fix swapped limit and hysteresis on 9240, 5595, 686a. Program sensors-detect: Recognize lm78 with chipid=0x20 - Program sensors-detect: Recognize SMSC Victory66 South Bridge + Recognize SMSC Victory66 South Bridge 2.5.5 (20010115) NOTE: i2c-2.5.5 MUST BE be compiled and installed first, UNLESS @@ -113,7 +115,7 @@ ask CVS about it: Module w83781d: W83783S no longer crashes on unloading Program sensors-detect: more robustness in case of unknown i2c adapters Program sensors-detect, libsensors: fix eeprom size reporting - Program sensord: more flexility, support for alarm scanning etc. + Program sensord: more flexibility, support for alarm scanning etc. Program sensors: support for ignore setting on sensor alarms. Programs: understand /dev/i2c* files (instead of /dev/i2c-*) too. diff --git a/prog/sensors/chips.c b/prog/sensors/chips.c index 5bf09388..48415416 100644 --- a/prog/sensors/chips.c +++ b/prog/sensors/chips.c @@ -366,7 +366,7 @@ void print_adm9240(const sensors_chip_name *name) !sensors_get_feature(*name,SENSORS_ADM9240_TEMP_OVER,&max)) { if (valid) { print_label(label,10); - print_temp_info( cur, min, max, HYST ); + print_temp_info( cur, max, min, HYST ); printf( " %s\n", alarms & ADM9240_ALARM_TEMP ? "ALARM" : "" ); } } else @@ -485,7 +485,7 @@ void print_sis5595(const sensors_chip_name *name) !sensors_get_feature(*name,SENSORS_SIS5595_TEMP_OVER,&max)) { if (valid) { print_label(label,10); - print_temp_info( cur, min, max, HYST ); + print_temp_info( cur, max, min, HYST ); printf( " %s\n", alarms & SIS5595_ALARM_TEMP ? "ALARM" : "" ); } } else @@ -607,7 +607,7 @@ void print_via686a(const sensors_chip_name *name) !sensors_get_feature(*name,SENSORS_VIA686A_TEMP_OVER,&max)) { if (valid) { print_label(label,10); - print_temp_info( cur, min, max, HYST ); + print_temp_info( cur, max, min, HYST ); printf(" %s\n", alarms & VIA686A_ALARM_TEMP ? "ALARM" : "" ); } } else @@ -619,7 +619,7 @@ void print_via686a(const sensors_chip_name *name) !sensors_get_feature(*name,SENSORS_VIA686A_TEMP2_OVER,&max)) { if (valid) { print_label(label,10); - print_temp_info( cur, min, max, HYST ); + print_temp_info( cur, max, min, HYST ); printf(" %s\n", alarms & VIA686A_ALARM_TEMP2 ? "ALARM" : "" ); } } else @@ -631,7 +631,7 @@ void print_via686a(const sensors_chip_name *name) !sensors_get_feature(*name,SENSORS_VIA686A_TEMP3_OVER,&max)) { if (valid) { print_label(label,10); - print_temp_info( cur, min, max, HYST ); + print_temp_info( cur, max, min, HYST ); printf(" %s\n", alarms & VIA686A_ALARM_TEMP3 ? "ALARM" : "" ); } } else