Signed-off-by: Juan Quintela <quint...@redhat.com> --- hw/es1370.c | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-)
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; -- 1.6.2.5