From d60efc6b0d3d4e90cbbb86e21451e55263c29416 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Tue, 25 Aug 2009 18:29:31 +0000 Subject: Make CPURead/WriteFunc structure 'const' Signed-off-by: Blue Swirl --- hw/omap_i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hw/omap_i2c.c') diff --git a/hw/omap_i2c.c b/hw/omap_i2c.c index 9e59005e89..d7c18882da 100644 --- a/hw/omap_i2c.c +++ b/hw/omap_i2c.c @@ -408,13 +408,13 @@ static void omap_i2c_writeb(void *opaque, target_phys_addr_t addr, } } -static CPUReadMemoryFunc *omap_i2c_readfn[] = { +static CPUReadMemoryFunc * const omap_i2c_readfn[] = { omap_badwidth_read16, omap_i2c_read, omap_badwidth_read16, }; -static CPUWriteMemoryFunc *omap_i2c_writefn[] = { +static CPUWriteMemoryFunc * const omap_i2c_writefn[] = { omap_i2c_writeb, /* Only the last fifo write can be 8 bit. */ omap_i2c_write, omap_badwidth_write16, -- cgit 1.4.1