Changeset 719

Show
Ignore:
Timestamp:
01/30/00 03:37:03 (13 years ago)
Author:
mds
Message:

(mds) more parentheses in detection if statement - can't hurt.

Files:
1 modified

Legend:

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

    r707 r719  
    730730                val2 = w83781d_read_value(new_client, W83781D_REG_CHIPMAN); 
    731731                /* Check for Winbond or Asus ID if in bank 0 */ 
    732                 if (!(val1 & 0x07) && 
    733                     ((!(val1 & 0x80) && (val2 != 0xa3) && (val2 != 0xc3)) 
     732                if ((!(val1 & 0x07)) && 
     733                    (((!(val1 & 0x80)) && (val2 != 0xa3) && (val2 != 0xc3)) 
    734734                     || ((val1 & 0x80) && (val2 != 0x5c) 
    735735                         && (val2 != 0x12)))) goto ERROR1; 
    736736                /* If Winbond SMBus, check address at 0x48. Asus doesn't support */ 
    737                 if ((!is_isa) && ((!(val1 & 0x80) && (val2 == 0xa3)) || 
     737                if ((!is_isa) && (((!(val1 & 0x80)) && (val2 == 0xa3)) || 
    738738                                  ((val1 & 0x80) && (val2 == 0x5c)))) { 
    739739                        if (w83781d_read_value