Patchwork [15/20] gus: remove IO_WRITE_PROTO

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

Comments

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

No.
[..snip..]

Patch

diff --git a/hw/gus.c b/hw/gus.c
index 101e645..d9c47b1 100644
--- a/hw/gus.c
+++ b/hw/gus.c
@@ -41,9 +41,6 @@ 
 #define GUS_ENDIANNESS 0
 #endif

-#define IO_WRITE_PROTO(name) \
-    static void name (void *opaque, uint32_t nport, uint32_t val)
-
 typedef struct GUSState {
     ISADevice dev;
     GUSEmuState emu;
@@ -73,14 +70,14 @@  static uint32_t gus_readw (void *opaque, uint32_t nport)
     return gus_read (&s->emu, nport, 2);
 }

-IO_WRITE_PROTO (gus_writeb)
+static void gus_writeb (void *opaque, uint32_t nport, uint32_t val)
 {
     GUSState *s = opaque;

     gus_write (&s->emu, nport, 1, val);
 }

-IO_WRITE_PROTO (gus_writew)
+static void gus_writew (void *opaque, uint32_t nport, uint32_t val)
 {
     GUSState *s = opaque;