From cd79c469b290c50518e3166d3e15a7644a96ac25 Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Sat, 13 Dec 2003 01:09:50 +0000 Subject: [PATCH] fix sg_tlx /proc entries. Ticket #1476. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2159 7894878c-1315-0410-8ee3-d5d059ff63e0 --- CHANGES | 5 +++++ kernel/chips/it87.c | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/CHANGES b/CHANGES index ace0dc95..34b3ba24 100644 --- a/CHANGES +++ b/CHANGES @@ -16,6 +16,10 @@ ask CVS about it: cvs diff -r V2-0-0 -r V2-0-1 -u ----------------------------------------------------------------------------- + +2.8.2 (2004????) + Module it87: Fix sg_tlx /proc entries + 2.8.2 (20031211) IMPORTANT: Limit initialization removed from all chip drivers! If you didn't run 'sensors -s' in the past you may need to now! @@ -50,6 +54,7 @@ ask CVS about it: add it87 sensor type support Module lm90: Add ADM1032 support Module w83781d: Fix 791d and 627hf detection + Module w83627hf: Add VID support Program dmidecode: Remove (sensors-detect doesn't need it anymore) Program eeprog: New Programs i2cdetect, i2cdump, i2cset: add -v (version) option; diff --git a/kernel/chips/it87.c b/kernel/chips/it87.c index 17fd944c..6783811f 100644 --- a/kernel/chips/it87.c +++ b/kernel/chips/it87.c @@ -888,23 +888,23 @@ void it87_sgtl(struct i2c_client *client, int operation, int ctl_name, } else if (operation == SENSORS_PROC_REAL_WRITE) { if (*nrels_mag >= 1) { data->sg_tl[nr - 1][0] = TEMP_TO_REG(results[0]); - it87_write_value(client, IT87_REG_SG_TL_OFF(nr), data->sg_pwm[nr - 1][0]); + it87_write_value(client, IT87_REG_SG_TL_OFF(nr), data->sg_tl[nr - 1][0]); } if (*nrels_mag >= 2) { data->sg_tl[nr - 1][1] = TEMP_TO_REG(results[1]); - it87_write_value(client, IT87_REG_SG_TL_LOW(nr), data->sg_pwm[nr - 1][1]); + it87_write_value(client, IT87_REG_SG_TL_LOW(nr), data->sg_tl[nr - 1][1]); } if (*nrels_mag >= 3) { data->sg_tl[nr - 1][2] = TEMP_TO_REG(results[2]); - it87_write_value(client, IT87_REG_SG_TL_MED(nr), data->sg_pwm[nr - 1][2]); + it87_write_value(client, IT87_REG_SG_TL_MED(nr), data->sg_tl[nr - 1][2]); } if (*nrels_mag >= 4) { data->sg_tl[nr - 1][3] = TEMP_TO_REG(results[3]); - it87_write_value(client, IT87_REG_SG_TL_HI(nr), data->sg_pwm[nr - 1][3]); + it87_write_value(client, IT87_REG_SG_TL_HI(nr), data->sg_tl[nr - 1][3]); } if (*nrels_mag >= 5) { data->sg_tl[nr - 1][4] = TEMP_TO_REG(results[4]); - it87_write_value(client, IT87_REG_SG_TL_OVR(nr), data->sg_pwm[nr - 1][4]); + it87_write_value(client, IT87_REG_SG_TL_OVR(nr), data->sg_tl[nr - 1][4]); } } }