ChangeSet 1.2223.2.6, 2004/11/24 14:26:15-08:00, aris@cathedrallabs.org [PATCH] [2/2] i2c-elektor: adding missing casts [I2C] i2c-elektor: adding missing casts Signed-off-by: Aristeu Sergio Rozanski Filho Signed-off-by: Greg Kroah-Hartman drivers/i2c/busses/i2c-elektor.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff -Nru a/drivers/i2c/busses/i2c-elektor.c b/drivers/i2c/busses/i2c-elektor.c --- a/drivers/i2c/busses/i2c-elektor.c 2004-11-30 16:00:59 -08:00 +++ b/drivers/i2c/busses/i2c-elektor.c 2004-11-30 16:00:59 -08:00 @@ -80,10 +80,10 @@ break; case 2: /* double mapped I/O needed for UP2000 board, I don't know why this... */ - writeb(val, address); + writeb(val, (void *)address); /* fall */ case 1: /* memory mapped I/O */ - writeb(val, address); + writeb(val, (void *)address); break; } } @@ -91,7 +91,7 @@ static int pcf_isa_getbyte(void *data, int ctl) { int address = ctl ? (base + 1) : base; - int val = mmapped ? readb(address) : inb(address); + int val = mmapped ? readb((void *)address) : inb(address); pr_debug("i2c-elektor: Read 0x%X 0x%02X\n", address, val);