X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=include%2Flinux%2Fmtd%2Fspi-nor.h;h=c425c7b4c2a09af2cbb38ea25b780463dbe3230f;hb=fdbdfefbabefcdf3f57560163b43fdc4cf95eb2f;hp=7f041bd88b8244f8fa243c71d508e55dd08b4160;hpb=e82a82c19f4272ea5437cc76e5711b98e2ee6223;p=deliverable%2Flinux.git diff --git a/include/linux/mtd/spi-nor.h b/include/linux/mtd/spi-nor.h index 7f041bd88b82..c425c7b4c2a0 100644 --- a/include/linux/mtd/spi-nor.h +++ b/include/linux/mtd/spi-nor.h @@ -173,10 +173,10 @@ struct spi_nor { int (*read_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len); int (*write_reg)(struct spi_nor *nor, u8 opcode, u8 *buf, int len); - int (*read)(struct spi_nor *nor, loff_t from, - size_t len, size_t *retlen, u_char *read_buf); - void (*write)(struct spi_nor *nor, loff_t to, - size_t len, size_t *retlen, const u_char *write_buf); + ssize_t (*read)(struct spi_nor *nor, loff_t from, + size_t len, u_char *read_buf); + ssize_t (*write)(struct spi_nor *nor, loff_t to, + size_t len, const u_char *write_buf); int (*erase)(struct spi_nor *nor, loff_t offs); int (*flash_lock)(struct spi_nor *nor, loff_t ofs, uint64_t len);