From: Kevin Wells Date: Wed, 11 Nov 2009 23:23:00 +0000 (+0100) Subject: i2c: i2c-pnx: Made buf type unsigned to prevent sign extension X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=4ced24c8973f79113444d1e00ee8bd9e74fbf43e;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git i2c: i2c-pnx: Made buf type unsigned to prevent sign extension Made buf type unsigned to prevent sign extension Signed-off-by: Kevin Wells Signed-off-by: Ben Dooks --- diff --git a/include/linux/i2c-pnx.h b/include/linux/i2c-pnx.h index f13255e06406..9eb07bbc6522 100644 --- a/include/linux/i2c-pnx.h +++ b/include/linux/i2c-pnx.h @@ -21,7 +21,7 @@ struct i2c_pnx_mif { int mode; /* Interface mode */ struct completion complete; /* I/O completion */ struct timer_list timer; /* Timeout */ - char * buf; /* Data buffer */ + u8 * buf; /* Data buffer */ int len; /* Length of data buffer */ };