From a348f108842fb928563865c9918642900cd0d477 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 5 Feb 2012 10:19:07 +0000 Subject: Add missing const attributes for MemoryRegionOps Most MemoryRegionOps already had the const attribute. This patch adds it to the remaining ones. Signed-off-by: Stefan Weil Signed-off-by: Blue Swirl --- hw/opencores_eth.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hw/opencores_eth.c') diff --git a/hw/opencores_eth.c b/hw/opencores_eth.c index 9b036cb103..4c7696935f 100644 --- a/hw/opencores_eth.c +++ b/hw/opencores_eth.c @@ -692,12 +692,12 @@ static void open_eth_desc_write(void *opaque, } -static MemoryRegionOps open_eth_reg_ops = { +static const MemoryRegionOps open_eth_reg_ops = { .read = open_eth_reg_read, .write = open_eth_reg_write, }; -static MemoryRegionOps open_eth_desc_ops = { +static const MemoryRegionOps open_eth_desc_ops = { .read = open_eth_desc_read, .write = open_eth_desc_write, }; -- cgit v1.2.3