Re: [PATCH] I2C fixes for 2.6.10-rc2

From: Greg KH
Date: Tue Nov 30 2004 - 19:31:03 EST


ChangeSet 1.2223.2.6, 2004/11/24 14:26:15-08:00, aris@xxxxxxxxxxxxxxxxx

[PATCH] [2/2] i2c-elektor: adding missing casts

[I2C] i2c-elektor: adding missing casts

Signed-off-by: Aristeu Sergio Rozanski Filho <aris@xxxxxxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <greg@xxxxxxxxx>


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);


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/