Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 60aca067 authored by Hauke Mehrtens's avatar Hauke Mehrtens Committed by Artem Bityutskiy
Browse files

mtd: bcm47xxsflash: write number of written bytes



The callback assumes the number of read bytes is written to retlen.

Signed-off-by: default avatarHauke Mehrtens <hauke@hauke-m.de>
Signed-off-by: default avatarArtem Bityutskiy <artem.bityutskiy@linux.intel.com>
parent 92d0e09a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ static int bcm47xxsflash_read(struct mtd_info *mtd, loff_t from, size_t len,

	memcpy_fromio(buf, (void __iomem *)KSEG0ADDR(b47s->window + from),
		      len);
	*retlen = len;

	return len;
}