Patchwork [02/10] Add return code to rmmio_writew

login
register
about
Submitter Niklas
Date 2013-09-23 18:27:21
Message ID <1379960849-20585-3-git-send-email-niso@kth.se>
Download mbox | patch
Permalink /patch/4062/
State New
Headers show

Comments

Niklas - 2013-09-23 18:27:21
Signed-off-by: Niklas Söderlund <niso@kth.se>
---
 hwaccess.c   | 3 ++-
 programmer.h | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

Patch

diff --git a/hwaccess.c b/hwaccess.c
index d8066b0..a386998 100644
--- a/hwaccess.c
+++ b/hwaccess.c
@@ -243,10 +243,11 @@  int rmmio_writeb(uint8_t val, void *addr)
 	return 0;
 }
 
-void rmmio_writew(uint16_t val, void *addr)
+int rmmio_writew(uint16_t val, void *addr)
 {
 	register_undo_mmio_writew(addr);
 	mmio_writew(val, addr);
+	return 0;
 }
 
 void rmmio_writel(uint32_t val, void *addr)
diff --git a/programmer.h b/programmer.h
index d86b791..317f51f 100644
--- a/programmer.h
+++ b/programmer.h
@@ -348,7 +348,7 @@  uint32_t mmio_le_readl(void *addr);
 #define pci_mmio_readw mmio_le_readw
 #define pci_mmio_readl mmio_le_readl
 int rmmio_writeb(uint8_t val, void *addr);
-void rmmio_writew(uint16_t val, void *addr);
+int rmmio_writew(uint16_t val, void *addr);
 void rmmio_writel(uint32_t val, void *addr);
 void rmmio_le_writeb(uint8_t val, void *addr);
 void rmmio_le_writew(uint16_t val, void *addr);