summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2012-09-29 07:57:25 -0700
committerTom Rini <trini@ti.com>2012-10-15 11:54:03 -0700
commit0e7d856ea570b22f0983ac7502d66879dcd76b31 (patch)
tree9c51afb7efdca3f84e19e6ecc0fa8fa19a40749c /drivers
parent98391ff1434519bb1c61a858e73eeda1ed41f2f7 (diff)
downloadu-boot-imx-0e7d856ea570b22f0983ac7502d66879dcd76b31.zip
u-boot-imx-0e7d856ea570b22f0983ac7502d66879dcd76b31.tar.gz
u-boot-imx-0e7d856ea570b22f0983ac7502d66879dcd76b31.tar.bz2
sil_sata: Make sata_write() comply with <part.h>
sata_write() takes a const void as the last argument. Fixing this means we also need to make ata_low_level_rw_lba{28,48} also take a const void. Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/block/sata_sil.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/sata_sil.c b/drivers/block/sata_sil.c
index fb7cd2a..27cfa3d 100644
--- a/drivers/block/sata_sil.c
+++ b/drivers/block/sata_sil.c
@@ -369,7 +369,7 @@ static ulong sil_sata_rw_cmd_ext(int dev, ulong start, ulong blkcnt,
}
ulong sil_sata_rw_lba28(int dev, ulong blknr, lbaint_t blkcnt,
- void *buffer, int is_write)
+ const void *buffer, int is_write)
{
ulong start, blks, max_blks;
u8 *addr;
@@ -397,7 +397,7 @@ ulong sil_sata_rw_lba28(int dev, ulong blknr, lbaint_t blkcnt,
}
ulong sil_sata_rw_lba48(int dev, ulong blknr, lbaint_t blkcnt,
- void *buffer, int is_write)
+ const void *buffer, int is_write)
{
ulong start, blks, max_blks;
u8 *addr;
@@ -502,7 +502,7 @@ ulong sata_read(int dev, ulong blknr, lbaint_t blkcnt, void *buffer)
/*
* SATA interface between low level driver and command layer
*/
-ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, void *buffer)
+ulong sata_write(int dev, ulong blknr, lbaint_t blkcnt, const void *buffer)
{
struct sil_sata *sata = sata_dev_desc[dev].priv;
ulong rc;