From 7b51473a0366e51c3115cfc9b330bcb1b1dc032c Mon Sep 17 00:00:00 2001 From: Philip Edelbrock Date: Tue, 29 Dec 1998 06:56:30 +0000 Subject: [PATCH] (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 --- kernel/chips/w83781d.c | 2 +- src/w83781d.c | 2 +- 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 */