qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 07/20] es1370: remove IO_WRITE_PROTO


From: Juan Quintela
Subject: [Qemu-devel] [PATCH 07/20] es1370: remove IO_WRITE_PROTO
Date: Thu, 22 Oct 2009 16:36:20 +0200

Signed-off-by: Juan Quintela <address@hidden>
---
 hw/es1370.c |    9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diff --git a/hw/es1370.c b/hw/es1370.c
index fe98267..6f0995a 100644
--- a/hw/es1370.c
+++ b/hw/es1370.c
@@ -156,9 +156,6 @@ static const unsigned dac1_samplerate[] = { 5512, 11025, 
22050, 44100 };
 #define DAC2_CHANNEL 1
 #define ADC_CHANNEL 2

-#define IO_WRITE_PROTO(n) \
-static void n (void *opaque, uint32_t addr, uint32_t val)
-
 static void es1370_dac1_callback (void *opaque, int free);
 static void es1370_dac2_callback (void *opaque, int free);
 static void es1370_adc_callback (void *opaque, int avail);
@@ -470,7 +467,7 @@ static inline uint32_t es1370_fixup (ES1370State *s, 
uint32_t addr)
     return addr;
 }

-IO_WRITE_PROTO (es1370_writeb)
+static void es1370_writeb (void *opaque, uint32_t addr, uint32_t val)
 {
     ES1370State *s = opaque;
     uint32_t shift, mask;
@@ -508,7 +505,7 @@ IO_WRITE_PROTO (es1370_writeb)
     }
 }

-IO_WRITE_PROTO (es1370_writew)
+static void es1370_writew (void *opaque, uint32_t addr, uint32_t val)
 {
     ES1370State *s = opaque;
     addr = es1370_fixup (s, addr);
@@ -545,7 +542,7 @@ IO_WRITE_PROTO (es1370_writew)
     }
 }

-IO_WRITE_PROTO (es1370_writel)
+static void es1370_writel (void *opaque, uint32_t addr, uint32_t val)
 {
     ES1370State *s = opaque;
     struct chan *d = &s->chan[0];
-- 
1.6.2.5





reply via email to

[Prev in Thread] Current Thread [Next in Thread]