From: Tom Rini Date: Sat, 29 Sep 2012 14:52:48 +0000 (-0700) Subject: ata_piix: sata_write must take a const void argument. X-Git-Tag: v2013.01-rc1~259 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5048a672d93e466cd7b47f5126e6d6381702d0e2;p=u-boot ata_piix: sata_write must take a const void argument. Signed-off-by: Tom Rini --- diff --git a/drivers/block/ata_piix.c b/drivers/block/ata_piix.c index 0404771ee4..dd411f12d6 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 c60d0359c9..85a8843a2d 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**************/