/* socrates_nand_verify_buf - Verify chip data against buffer @mtd: MTD device structure @buf: buffer containing the data to compare @len: number of bytes to compare  */
static int socrates_nand_verify_buf(struct mtd_info *mtd, const u8 *buf, int len)
/* socrates_nand_verify_buf - Verify chip data against buffer @mtd: MTD device structure @buf: buffer containing the data to compare @len: number of bytes to compare  */
static int socrates_nand_verify_buf(struct mtd_info *mtd, const u8 *buf, int len)
{
	int i;
	for (i = 0; i < len; i++) {
		if (buf[i] != socrates_nand_read_byte(mtd))
			return -EFAULT;
	}
	return 0;
}