(Kyösti) SMBus over i2c "Read Word" bug fixed

Uh.. there was a '+' when it should have been '|'


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@479 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Kyosti Malkki committed 1999-06-09 20:07:41 +00:00
1 parent a652901772
commit 0960a2028b
1 file changed
+1 -1
+1 -1
View File
@@ -185,7 +185,7 @@ s32 smbus_access_i2c(struct i2c_adapter * adapter, u8 addr, char read_write,
break;
case SMBUS_WORD_DATA:
case SMBUS_PROC_CALL:
data->word = msgbuf1[0] + (msgbuf1[1] << 8);
data->word = msgbuf1[0] | (msgbuf1[1] << 8);
break;
}
return 0;