From 6e9df7e9576ddcc88f62376abc4f3aad0875e626 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Engel?= Date: Fri, 21 Sep 2007 15:41:44 +0200 Subject: [PATCH] --- yaml --- r: 68521 b: refs/heads/master c: b38178ee712e8608f20c8e741adf97f75f1aea39 h: refs/heads/master i: 68519: 38db195996791ae44df22ca4fc484cc3a7eb89a7 v: v3 --- [refs] | 2 +- trunk/include/linux/mtd/mtd.h | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 7709121cc650..aed60299ee2e 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 5041f1f1b753031731bc404c906817323a9c280b +refs/heads/master: b38178ee712e8608f20c8e741adf97f75f1aea39 diff --git a/trunk/include/linux/mtd/mtd.h b/trunk/include/linux/mtd/mtd.h index fd64ccfbce02..783fc983417c 100644 --- a/trunk/include/linux/mtd/mtd.h +++ b/trunk/include/linux/mtd/mtd.h @@ -133,6 +133,13 @@ struct mtd_info { int numeraseregions; struct mtd_erase_region_info *eraseregions; + /* + * Erase is an asynchronous operation. Device drivers are supposed + * to call instr->callback() whenever the operation completes, even + * if it completes with a failure. + * Callers are supposed to pass a callback function and wait for it + * to be called before writing to the block. + */ int (*erase) (struct mtd_info *mtd, struct erase_info *instr); /* This stuff for eXecute-In-Place */