diff mbox

[12/20] c4231a: remove IO_WRITE_PROTO

Message ID cb952f199f6b155f3c898571705da3aff57c3b2d.1256221009.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/cs4231a.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

Comments

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

No.
[..snip..]
diff mbox

Patch

diff --git a/hw/cs4231a.c b/hw/cs4231a.c
index 8a91b29..a077edc 100644
--- a/hw/cs4231a.c
+++ b/hw/cs4231a.c
@@ -74,9 +74,6 @@  typedef struct CSState {
     int16_t *tab;
 } CSState;

-#define IO_WRITE_PROTO(name)                                            \
-    static void name (void *opaque, uint32_t addr, uint32_t val)
-
 #define GET_SADDR(addr) (addr & 3)

 #define MODE2 (1 << 6)
@@ -387,7 +384,7 @@  static uint32_t cs_read (void *opaque, uint32_t addr)
     return ret;
 }

-IO_WRITE_PROTO (cs_write)
+static void cs_write (void *opaque, uint32_t addr, uint32_t val)
 {
     CSState *s = opaque;
     uint32_t saddr, iaddr;