Browse Source

i2c: i2c-pnx: Made buf type unsigned to prevent sign extension

Made buf type unsigned to prevent sign extension

Signed-off-by: Kevin Wells <kevin.wells@nxp.com>
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Kevin Wells 15 years ago
parent
commit
4ced24c897
1 changed files with 1 additions and 1 deletions
  1. 1 1
      include/linux/i2c-pnx.h

+ 1 - 1
include/linux/i2c-pnx.h

@@ -21,7 +21,7 @@ struct i2c_pnx_mif {
 	int			mode;		/* Interface mode */
 	int			mode;		/* Interface mode */
 	struct completion	complete;	/* I/O completion */
 	struct completion	complete;	/* I/O completion */
 	struct timer_list	timer;		/* Timeout */
 	struct timer_list	timer;		/* Timeout */
-	char *			buf;		/* Data buffer */
+	u8 *			buf;		/* Data buffer */
 	int			len;		/* Length of data buffer */
 	int			len;		/* Length of data buffer */
 };
 };