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_dss.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'hw/omap_dss.c') diff --git a/hw/omap_dss.c b/hw/omap_dss.c index b6aad4f09c..044f2d2428 100644 --- a/hw/omap_dss.c +++ b/hw/omap_dss.c @@ -230,13 +230,13 @@ static void omap_diss_write(void *opaque, target_phys_addr_t addr, } } -static CPUReadMemoryFunc *omap_diss1_readfn[] = { +static CPUReadMemoryFunc * const omap_diss1_readfn[] = { omap_badwidth_read32, omap_badwidth_read32, omap_diss_read, }; -static CPUWriteMemoryFunc *omap_diss1_writefn[] = { +static CPUWriteMemoryFunc * const omap_diss1_writefn[] = { omap_badwidth_write32, omap_badwidth_write32, omap_diss_write, @@ -569,13 +569,13 @@ static void omap_disc_write(void *opaque, target_phys_addr_t addr, } } -static CPUReadMemoryFunc *omap_disc1_readfn[] = { +static CPUReadMemoryFunc * const omap_disc1_readfn[] = { omap_badwidth_read32, omap_badwidth_read32, omap_disc_read, }; -static CPUWriteMemoryFunc *omap_disc1_writefn[] = { +static CPUWriteMemoryFunc * const omap_disc1_writefn[] = { omap_badwidth_write32, omap_badwidth_write32, omap_disc_write, @@ -841,13 +841,13 @@ static void omap_rfbi_write(void *opaque, target_phys_addr_t addr, } } -static CPUReadMemoryFunc *omap_rfbi1_readfn[] = { +static CPUReadMemoryFunc * const omap_rfbi1_readfn[] = { omap_badwidth_read32, omap_badwidth_read32, omap_rfbi_read, }; -static CPUWriteMemoryFunc *omap_rfbi1_writefn[] = { +static CPUWriteMemoryFunc * const omap_rfbi1_writefn[] = { omap_badwidth_write32, omap_badwidth_write32, omap_rfbi_write, @@ -960,13 +960,13 @@ static void omap_venc_write(void *opaque, target_phys_addr_t addr, } } -static CPUReadMemoryFunc *omap_venc1_readfn[] = { +static CPUReadMemoryFunc * const omap_venc1_readfn[] = { omap_badwidth_read32, omap_badwidth_read32, omap_venc_read, }; -static CPUWriteMemoryFunc *omap_venc1_writefn[] = { +static CPUWriteMemoryFunc * const omap_venc1_writefn[] = { omap_badwidth_write32, omap_badwidth_write32, omap_venc_write, @@ -1010,13 +1010,13 @@ static void omap_im3_write(void *opaque, target_phys_addr_t addr, } } -static CPUReadMemoryFunc *omap_im3_readfn[] = { +static CPUReadMemoryFunc * const omap_im3_readfn[] = { omap_badwidth_read32, omap_badwidth_read32, omap_im3_read, }; -static CPUWriteMemoryFunc *omap_im3_writefn[] = { +static CPUWriteMemoryFunc * const omap_im3_writefn[] = { omap_badwidth_write32, omap_badwidth_write32, omap_im3_write, -- cgit 1.4.1