[U-Boot] [PATCH v1 6/9] sata_dwc: Make sata_write() use const void, per <part.h>

Tom Rini trini at ti.com
Sat Sep 29 22:51:53 CEST 2012


Signed-off-by: Tom Rini <trini at ti.com>
---
 drivers/block/sata_dwc.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/block/sata_dwc.c b/drivers/block/sata_dwc.c
index 75101b5..cc4446a 100644
--- a/drivers/block/sata_dwc.c
+++ b/drivers/block/sata_dwc.c
@@ -1907,7 +1907,7 @@ err_out:
 #define SATA_MAX_WRITE_BLK 0xFFFF
 #endif
 
-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)
 {
 	ulong start,blks, buf_addr;
 	unsigned short smallblks;
-- 
1.7.9.5



More information about the U-Boot mailing list