mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-06 15:51:34 +00:00
(mds) more parentheses in detection if statement - can't hurt.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@719 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
afcc0fe82f
commit
0efe92ad9a
1 file changed
+3
-3
@@ -729,12 +729,12 @@ int w83781d_detect(struct i2c_adapter *adapter, int address,
|
||||
val1 = w83781d_read_value(new_client, W83781D_REG_BANK);
|
||||
val2 = w83781d_read_value(new_client, W83781D_REG_CHIPMAN);
|
||||
/* Check for Winbond or Asus ID if in bank 0 */
|
||||
if (!(val1 & 0x07) &&
|
||||
((!(val1 & 0x80) && (val2 != 0xa3) && (val2 != 0xc3))
|
||||
if ((!(val1 & 0x07)) &&
|
||||
(((!(val1 & 0x80)) && (val2 != 0xa3) && (val2 != 0xc3))
|
||||
|| ((val1 & 0x80) && (val2 != 0x5c)
|
||||
&& (val2 != 0x12)))) goto ERROR1;
|
||||
/* If Winbond SMBus, check address at 0x48. Asus doesn't support */
|
||||
if ((!is_isa) && ((!(val1 & 0x80) && (val2 == 0xa3)) ||
|
||||
if ((!is_isa) && (((!(val1 & 0x80)) && (val2 == 0xa3)) ||
|
||||
((val1 & 0x80) && (val2 == 0x5c)))) {
|
||||
if (w83781d_read_value
|
||||
(new_client, W83781D_REG_I2C_ADDR) != address)
|
||||
|
||||
Reference in new issue
Block a user