diff mbox

[06/20] es1370: remove IO_READ_PROTO

Message ID ad2f5342b0cce801465c71dab3bb255a439ba841.1256221008.git.quintela@redhat.com
State New
Headers show

Commit Message

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

Comments

malc Oct. 22, 2009, 8:33 p.m. UTC | #1
On Thu, 22 Oct 2009, Juan Quintela wrote:

No.
[..snip..]
diff mbox

Patch

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

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

@@ -613,7 +611,7 @@  IO_WRITE_PROTO (es1370_writel)
     }
 }

-IO_READ_PROTO (es1370_readb)
+static uint32_t es1370_readb (void *opaque, uint32_t addr)
 {
     ES1370State *s = opaque;
     uint32_t val;
@@ -648,7 +646,7 @@  IO_READ_PROTO (es1370_readb)
     return val;
 }

-IO_READ_PROTO (es1370_readw)
+static uint32_t es1370_readw (void *opaque, uint32_t addr)
 {
     ES1370State *s = opaque;
     struct chan *d = &s->chan[0];
@@ -690,7 +688,7 @@  IO_READ_PROTO (es1370_readw)
     return val;
 }

-IO_READ_PROTO (es1370_readl)
+static uint32_t es1370_readl (void *opaque, uint32_t addr)
 {
     ES1370State *s = opaque;
     uint32_t val;