Patchwork [U-Boot,v1,2/9] ata_piix: sata_write must take a const void argument.

login
register
mail settings
Submitter Tom Rini
Date Sept. 29, 2012, 8:51 p.m.
Message ID <1348951916-3495-3-git-send-email-trini@ti.com>
Download mbox | patch
Permalink /patch/188053/
State Accepted
Delegated to: Tom Rini
Headers show

Comments

Tom Rini - Sept. 29, 2012, 8:51 p.m.
Signed-off-by: Tom Rini <trini@ti.com>
---
 drivers/block/ata_piix.c |    2 +-
 drivers/block/ata_piix.h |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

Patch

diff --git a/drivers/block/ata_piix.c b/drivers/block/ata_piix.c
index 0404771..dd411f1 100644
--- a/drivers/block/ata_piix.c
+++ b/drivers/block/ata_piix.c
@@ -623,7 +623,7 @@  ulong sata_read(int device, ulong blknr, lbaint_t blkcnt, void *buff)
 	return n;
 }
 
-ulong sata_write(int device, ulong blknr, lbaint_t blkcnt, void *buff)
+ulong sata_write(int device, ulong blknr, lbaint_t blkcnt, const void *buff)
 {
 	ulong n = 0, *buffer = (ulong *)buff;
 	unsigned char status = 0, num = 0, dev = 0, mask = 0;
diff --git a/drivers/block/ata_piix.h b/drivers/block/ata_piix.h
index c60d035..85a8843 100644
--- a/drivers/block/ata_piix.h
+++ b/drivers/block/ata_piix.h
@@ -57,7 +57,7 @@  void dev_select(struct sata_ioports *ioaddr, int dev);
 u8 sata_busy_wait(struct sata_ioports *ioaddr, int bits, unsigned int max);
 u8 sata_chk_status(struct sata_ioports *ioaddr);
 ulong sata_read(int device, ulong blknr,lbaint_t blkcnt, void *buffer);
-ulong sata_write(int device,ulong blknr, lbaint_t blkcnt, void *buffer);
+ulong sata_write(int device,ulong blknr, lbaint_t blkcnt, const void *buffer);
 #endif
 
 /************DRIVER SPECIFIC DEFINITIONS AND DECLARATIONS**************/