From 99cb8b09923ad71f287d912da99292f22c9f62e8 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Wed, 21 Jan 2004 18:51:25 +0000 Subject: [PATCH] Unimportant changes brought back from my recent co-port of the driver to Linux 2.6. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2238 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/chips/w83l785ts.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/kernel/chips/w83l785ts.c b/kernel/chips/w83l785ts.c index 441caadf..ca8b5b6e 100644 --- a/kernel/chips/w83l785ts.c +++ b/kernel/chips/w83l785ts.c @@ -1,14 +1,13 @@ /* * w83l785ts.c - Part of lm_sensors, Linux kernel modules for hardware - * monitoring - * Copyright (C) 2003 Jean Delvare + * monitoring + * Copyright (C) 2003-2004 Jean Delvare * * Inspired from the lm83 driver. The W83L785TS-S is a sensor chip made * by Winbond. It reports a single external temperature with a 1 deg - * resolution and a 3 deg accuracy. Datasheet can be obtained from + * resolution and a 3 deg accuracy. Data sheet can be obtained from * Winbond's website at: - * http://www.winbond-usa.com/products/winbond_products/pdfs/PCIC/W86L785TS-S.pdf - * Yes, the file name is wrong. + * http://www.winbond-usa.com/products/winbond_products/pdfs/PCIC/W83L785TS-S.pdf * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -34,6 +33,7 @@ /* * Address to scan + * Address is fully defined internally and cannot be changed. */ static unsigned short normal_i2c[] = { 0x2e, SENSORS_I2C_END }; @@ -65,7 +65,7 @@ SENSORS_INSMOD_1(w83l785ts); * The W83L785TS-S uses signed 8-bit values. */ -#define TEMP_FROM_REG(val) (val > 127 ? val-256 : val) +#define TEMP_FROM_REG(val) (val & 0x80 ? val-0x100 : val) /* * Functions declaration