This is a pointer to a function provided by the user module which will be called when the erase request is completed.
The callback function may be called from IRQ context or from a timer, and must not block or schedule.
Private data for use by the user module which schedules the erase.
The current state of the erase request. Choose from:
#define MTD_ERASE_PENDING 0x01 #define MTD_ERASING 0x02 #define MTD_ERASE_SUSPEND 0x04 #define MTD_ERASE_DONE 0x08 #define MTD_ERASE_FAILED 0x10
The driver module should set this to MTD_ERASE_PENDING when the erase request is queued, and will generally have set it to MTD_ERASE_DONE or MTD_ERASE_FAILED when calling the callback routine.
The time, retries, dev and cell fields may disappear, and be replaced with a void *driverpriv field in which a driver module may keep whatever information it needs, or a pointer to it.