Patchwork [11/20] c4231a: remove IO_READ_PROTO

login
register
mail settings
Submitter Juan Quintela
Date Oct. 22, 2009, 2:36 p.m.
Message ID <18041b9c0165a2c2c0a2a0bb3d4aa994b42d3591.1256221008.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/36683/
State New
Headers show

Comments

Juan Quintela - Oct. 22, 2009, 2:36 p.m.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 hw/cs4231a.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
malc - Oct. 22, 2009, 8:34 p.m.
On Thu, 22 Oct 2009, Juan Quintela wrote:

No.
[..snip..]

Patch

diff --git a/hw/cs4231a.c b/hw/cs4231a.c
index e03c5d2..8a91b29 100644
--- a/hw/cs4231a.c
+++ b/hw/cs4231a.c
@@ -74,9 +74,6 @@  typedef struct CSState {
     int16_t *tab;
 } CSState;

-#define IO_READ_PROTO(name)                             \
-    static uint32_t name (void *opaque, uint32_t addr)
-
 #define IO_WRITE_PROTO(name)                                            \
     static void name (void *opaque, uint32_t addr, uint32_t val)

@@ -353,7 +350,7 @@  static void cs_reset_voices (CSState *s, uint32_t val)
     }
 }

-IO_READ_PROTO (cs_read)
+static uint32_t cs_read (void *opaque, uint32_t addr)
 {
     CSState *s = opaque;
     uint32_t saddr, iaddr, ret;