(mds) fix compile error of mine. Thanks Axel.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2817 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker committed 2004-12-31 14:12:37 +00:00
1 parent 987686721c
commit e958e52598
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -18,6 +18,7 @@ ask CVS about it:
-----------------------------------------------------------------------------
2.9.1 (2005????)
Module bmcsensors: Fix compile error
2.9.0 (20041228)
NOTE: Requires i2c-2.9.0 or newer!
+1 -1
View File
@@ -297,7 +297,7 @@ static void bmcsensors_select_thresholds(struct sdrdata * sd)
}
/* swap lim1/lim2 if m < 0 or function is 1/x (but not both!) */
if(m < 0 && sd->linear != 7 || m >= 0 && sd->linear == 7) {
if(sd->m < 0 && sd->linear != 7 || sd->m >= 0 && sd->linear == 7) {
tmp = sd->lim1;
sd->lim1 = sd->lim2;
sd->lim2 = tmp;