Changeset 2238

Show
Ignore:
Timestamp:
01/21/04 19:51:25 (9 years ago)
Author:
khali
Message:

Unimportant changes brought back from my recent co-port of the

driver to Linux 2.6.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/chips/w83l785ts.c

    r2180 r2238  
    11/* 
    22 * w83l785ts.c - Part of lm_sensors, Linux kernel modules for hardware 
    3  *          monitoring 
    4  * Copyright (C) 2003  Jean Delvare <khali@linux-fr.org> 
     3 *               monitoring 
     4 * Copyright (C) 2003-2004  Jean Delvare <khali@linux-fr.org> 
    55 * 
    66 * Inspired from the lm83 driver. The W83L785TS-S is a sensor chip made 
    77 * by Winbond. It reports a single external temperature with a 1 deg 
    8  * resolution and a 3 deg accuracy. Datasheet can be obtained from 
     8 * resolution and a 3 deg accuracy. Data sheet can be obtained from 
    99 * Winbond's website at: 
    10  *   http://www.winbond-usa.com/products/winbond_products/pdfs/PCIC/W86L785TS-S.pdf 
    11  * Yes, the file name is wrong. 
     10 *   http://www.winbond-usa.com/products/winbond_products/pdfs/PCIC/W83L785TS-S.pdf 
    1211 * 
    1312 * This program is free software; you can redistribute it and/or modify 
     
    3534/* 
    3635 * Address to scan 
     36 * Address is fully defined internally and cannot be changed. 
    3737 */ 
    3838 
     
    6666 */ 
    6767 
    68 #define TEMP_FROM_REG(val)      (val > 127 ? val-256 : val) 
     68#define TEMP_FROM_REG(val)      (val & 0x80 ? val-0x100 : val) 
    6969 
    7070/*