Patchwork [14/20] gus: remove IO_READ_PROTO

login
register
mail settings
Submitter Juan Quintela
Date Oct. 22, 2009, 2:36 p.m.
Message ID <24a6b4e7bf75fdee9e59b05775cc557bd09dc39a.1256221009.git.quintela@redhat.com>
Download mbox | patch
Permalink /patch/36685/
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 |    6 ++----
 1 files changed, 2 insertions(+), 4 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 c6b98b3..101e645 100644
--- a/hw/gus.c
+++ b/hw/gus.c
@@ -41,8 +41,6 @@ 
 #define GUS_ENDIANNESS 0
 #endif

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

@@ -61,14 +59,14 @@  typedef struct GUSState {
     qemu_irq pic;
 } GUSState;

-IO_READ_PROTO (gus_readb)
+static uint32_t gus_readb (void *opaque, uint32_t nport)
 {
     GUSState *s = opaque;

     return gus_read (&s->emu, nport, 1);
 }

-IO_READ_PROTO (gus_readw)
+static uint32_t gus_readw (void *opaque, uint32_t nport)
 {
     GUSState *s = opaque;