mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-08 16:11:26 +00:00
(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:
1 parent
a652901772
commit
0960a2028b
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user