The MTD API expects read() to return the number of read bytes and write() to return the number of written bytes. So change the driver API to match that.
The MTD API expects read() to return the number of read bytes and write() to return the number of written bytes. So change the driver API to match that.