summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorphil <phil@7894878c-1315-0410-8ee3-d5d059ff63e0>1998-12-29 06:56:30 +0000
committerphil <phil@7894878c-1315-0410-8ee3-d5d059ff63e0>1998-12-29 06:56:30 +0000
commit582289892a6563ff4ef3ae120389dcfee6679802 (patch)
treecb7e791b79837f0cb18173c7945a231cd75c74fd
parent3bd3cf6a709681cc39cf6dba8e4a008458a398c8 (diff)
downloadlm-sensors-582289892a6563ff4ef3ae120389dcfee6679802.tar.gz
(Phil) Fixed a simple (but serious) problem with the temp2 and temp3
readings. (changed a u8 to a u16 in the data struct.) Now the temp readings seem to work perfectly! git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@136 7894878c-1315-0410-8ee3-d5d059ff63e0
-rw-r--r--kernel/chips/w83781d.c2
-rw-r--r--src/w83781d.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/kernel/chips/w83781d.c b/kernel/chips/w83781d.c
index 8dc0b9f8..f2c8fd27 100644
--- a/kernel/chips/w83781d.c
+++ b/kernel/chips/w83781d.c
@@ -213,7 +213,7 @@ struct w83781d_data {
u8 temp;
u8 temp_over; /* Register value */
u8 temp_hyst; /* Register value */
- u8 temp_add[2]; /* Register value */
+ u16 temp_add[2]; /* Register value */
u16 temp_add_over[2]; /* Register value */
u16 temp_add_hyst[2]; /* Register value */
u8 fan_div[3]; /* Register encoding, shifted right */
diff --git a/src/w83781d.c b/src/w83781d.c
index 8dc0b9f8..f2c8fd27 100644
--- a/src/w83781d.c
+++ b/src/w83781d.c
@@ -213,7 +213,7 @@ struct w83781d_data {
u8 temp;
u8 temp_over; /* Register value */
u8 temp_hyst; /* Register value */
- u8 temp_add[2]; /* Register value */
+ u16 temp_add[2]; /* Register value */
u16 temp_add_over[2]; /* Register value */
u16 temp_add_hyst[2]; /* Register value */
u8 fan_div[3]; /* Register encoding, shifted right */