Skip to contentSkip to conversation

synchronize i2c_msg structure in i2c and

PATCH New Hideki IWAMOTO 2 participants 2 messages Sep 27, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 synchronize i2c_msg structure in i2c and

Without this, I2C_RDWR ioctl does not work correctly.

Index: kernel/include/i2c-dev.h
=================================RCS file: /home/cvs/lm_sensors2/kernel/include/i2c-dev.h,v retrieving revision 1.9

include/i2c-dev.h +0 -2
diff -u -r1.9 i2c-dev.h
@@ -45,8 +45,6 @@
 #define I2C_M_NO_RD_ACK		0x0800
 	short len;		/* msg length				*/
 	char *buf;		/* pointer to msg data			*/
-	int err;
-	short done;
 };
 
 /* To determine what functionality is present */

----
Hideki IWAMOTO [email protected]

#1 lore raw

PATCH 1/1 synchronize i2c_msg structure in i2c and

Konbanwa Hideki,

Quoted 9 lines

Without this, I2C_RDWR ioctl does not work correctly.

Index: kernel/include/i2c-dev.h
=================================> RCS file: /home/cvs/lm_sensors2/kernel/include/i2c-dev.h,v retrieving revision 1.9
diff -u -r1.9 i2c-dev.h

include/i2c-dev.h line 48

Quoted 6 lines
include/i2c-dev.h +0 -2
@@ -45,8 +45,6 @@
 #define I2C_M_NO_RD_ACK		0x0800
 	short len;		/* msg length				*/
 	char *buf;		/* pointer to msg data			*/
-	int err;
-	short done;
 };

My bad. I dropped these members from i2c_msg in i2c.h a few months ago to solve compatibility problems between i2c CVS and Linux 2.4, but completely forgot to change i2c-dev.h in a similar way. Thanks for pointing this out, I've applied your patch.

Arigato,

Signature · 1 line
Jean Delvare