mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-26 12:24:33 +00:00
(Kyösti) : Fix the Read Word bug, again..
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@480 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
0960a2028b
commit
ffe3cb3324
1 file changed
+2
-2
+2
-2
@@ -109,8 +109,8 @@ s32 smbus_access_i2c(struct i2c_adapter * adapter, u8 addr, char read_write,
|
||||
need to use only one message; when reading, we need two. We initialize
|
||||
most things with sane defaults, to keep the code below somewhat
|
||||
simpler. */
|
||||
char msgbuf0[33];
|
||||
char msgbuf1[33];
|
||||
unsigned char msgbuf0[33];
|
||||
unsigned char msgbuf1[33];
|
||||
int num = read_write == SMBUS_READ?2:1;
|
||||
struct i2c_msg msg[2] = { { addr, 0, 1, msgbuf0 },
|
||||
{ addr, I2C_M_RD, 0, msgbuf1 }
|
||||
|
||||
Reference in new issue
Block a user