aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mtd/mtd.h
diff options
context:
space:
mode:
authorArtem B. Bityutskiy <dedekind@sauron.oktetlabs.ru>2006-06-14 11:53:44 -0400
committerArtem B. Bityutskiy <dedekind@sauron.oktetlabs.ru>2006-06-14 11:53:44 -0400
commit783ed81ff39d3f938a6b2efd09fbad96e41e5c1f (patch)
tree31cdfd9c39c9451ba37866dcb6e82e68c770216c /include/linux/mtd/mtd.h
parentf9068876f5ef583f8e9ebf4acd2ef5b35b113db9 (diff)
[MTD] assume mtd->writesize is 1 for NOR flashes
Signed-off-by: Artem B. Bityitskiy
Diffstat (limited to 'include/linux/mtd/mtd.h')
-rw-r--r--include/linux/mtd/mtd.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h
index 9536567d041b..e1d2a3d56546 100644
--- a/include/linux/mtd/mtd.h
+++ b/include/linux/mtd/mtd.h
@@ -110,9 +110,12 @@ struct mtd_info {
110 * information below if they desire 110 * information below if they desire
111 */ 111 */
112 u_int32_t erasesize; 112 u_int32_t erasesize;
113 /* Smallest availlable size for writing to the device. For NAND, 113 /* Minimal writable flash unit size. In case of NOR flash it is 1 (even
114 * this is the page size, for some NOR chips, the size of ECC 114 * though individual bits can be cleared), in case of NAND flash it is
115 * covered blocks. 115 * one NAND page (or half, or one-fourths of it), in case of ECC-ed NOR
116 * it is of ECC block size, etc. It is illegal to have writesize = 0.
117 * Any driver registering a struct mtd_info must ensure a writesize of
118 * 1 or larger.
116 */ 119 */
117 u_int32_t writesize; 120 u_int32_t writesize;
118 121