Replace the uint8_t pointer by a void pointer and make the length unsigned so it matches what's passed through the nand instructions. Signed-off-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxxxx> --- drivers/mtd/nand/raw/cafe_nand.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand/raw/cafe_nand.c b/drivers/mtd/nand/raw/cafe_nand.c index 5b38d496d923..26495085f285 100644 --- a/drivers/mtd/nand/raw/cafe_nand.c +++ b/drivers/mtd/nand/raw/cafe_nand.c @@ -179,7 +179,8 @@ static const char *part_probes[] = { "cmdlinepart", "RedBoot", NULL }; #define cafe_readl(cafe, addr) readl((cafe)->mmio + CAFE_##addr) #define cafe_writel(cafe, datum, addr) writel(datum, (cafe)->mmio + CAFE_##addr) -static void cafe_write_buf(struct nand_chip *chip, const uint8_t *buf, int len) +static void cafe_write_buf(struct nand_chip *chip, const void *buf, + unsigned int len) { struct cafe_priv *cafe = nand_get_controller_data(chip); @@ -191,7 +192,7 @@ static void cafe_write_buf(struct nand_chip *chip, const uint8_t *buf, int len) dev_dbg(&cafe->pdev->dev, "Copy 0x%x bytes to write buffer.\n", len); } -static void cafe_read_buf(struct nand_chip *chip, uint8_t *buf, int len) +static void cafe_read_buf(struct nand_chip *chip, void *buf, unsigned int len) { struct cafe_priv *cafe = nand_get_controller_data(chip); -- 2.25.3 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/