Make CPURead/WriteFunc structure 'const'
Signed-off-by: Blue Swirl <[email protected]>
diff --git a/hw/etraxfs_eth.c b/hw/etraxfs_eth.c
index e1e5d8c..54786c5 100644
--- a/hw/etraxfs_eth.c
+++ b/hw/etraxfs_eth.c
@@ -544,12 +544,12 @@
eth->phy.link = !vc->link_down;
}
-static CPUReadMemoryFunc *eth_read[] = {
+static CPUReadMemoryFunc * const eth_read[] = {
NULL, NULL,
ð_readl,
};
-static CPUWriteMemoryFunc *eth_write[] = {
+static CPUWriteMemoryFunc * const eth_write[] = {
NULL, NULL,
ð_writel,
};