patch-2.4.21 linux-2.4.21/include/linux/i2c.h

Next file: linux-2.4.21/include/linux/ide.h
Previous file: linux-2.4.21/include/linux/i2c-id.h
Back to the patch index
Back to the overall index

diff -urN linux-2.4.20/include/linux/i2c.h linux-2.4.21/include/linux/i2c.h
@@ -382,13 +382,13 @@
  */
 struct i2c_msg {
 	__u16 addr;	/* slave address			*/
-	unsigned short flags;		
+	__u16 flags;		
 #define I2C_M_TEN	0x10	/* we have a ten bit chip address	*/
 #define I2C_M_RD	0x01
 #define I2C_M_NOSTART	0x4000
 #define I2C_M_REV_DIR_ADDR	0x2000
-	short len;		/* msg length				*/
-	char *buf;		/* pointer to msg data			*/
+	__u16 len;		/* msg length				*/
+	__u8 *buf;		/* pointer to msg data			*/
 };
 
 /* To determine what functionality is present */

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)