Patchwork [07/20] es1370: remove IO_WRITE_PROTO

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

Comments

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

No.
[..snip..]

Patch

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];