aboutsummaryrefslogtreecommitdiffstats
path: root/include/mtd
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2011-08-30 21:45:40 -0400
committerArtem Bityutskiy <artem.bityutskiy@intel.com>2011-09-11 08:28:59 -0400
commit0612b9ddc2eeda014dd805c87c752b342d8f80f0 (patch)
tree7691ee548ab6da1e7df946a75abd96a814208d8e /include/mtd
parent905c6bcdb42616da717a9bd6c0c5870dbd90b09e (diff)
mtd: rename MTD_OOB_* to MTD_OPS_*
These modes are not necessarily for OOB only. Particularly, MTD_OOB_RAW affected operations on in-band page data as well. To clarify these options and to emphasize that their effect is applied per-operation, we change the primary prefix to MTD_OPS_. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
Diffstat (limited to 'include/mtd')
-rw-r--r--include/mtd/mtd-abi.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/mtd/mtd-abi.h b/include/mtd/mtd-abi.h
index af42c7a34805..d30990e1858b 100644
--- a/include/mtd/mtd-abi.h
+++ b/include/mtd/mtd-abi.h
@@ -46,18 +46,18 @@ struct mtd_oob_buf64 {
46}; 46};
47 47
48/* 48/*
49 * oob operation modes 49 * MTD operation modes
50 * 50 *
51 * MTD_OOB_PLACE: oob data are placed at the given offset (default) 51 * MTD_OPS_PLACE_OOB: oob data are placed at the given offset (default)
52 * MTD_OOB_AUTO: oob data are automatically placed at the free areas 52 * MTD_OPS_AUTO_OOB: oob data are automatically placed at the free areas
53 * which are defined by the internal ecclayout 53 * which are defined by the internal ecclayout
54 * MTD_OOB_RAW: mode to read or write oob and data without doing ECC 54 * MTD_OPS_RAW: mode to read or write oob and data without doing ECC
55 * checking 55 * checking
56 */ 56 */
57enum { 57enum {
58 MTD_OOB_PLACE = 0, 58 MTD_OPS_PLACE_OOB = 0,
59 MTD_OOB_AUTO = 1, 59 MTD_OPS_AUTO_OOB = 1,
60 MTD_OOB_RAW = 2, 60 MTD_OPS_RAW = 2,
61}; 61};
62 62
63#define MTD_ABSENT 0 63#define MTD_ABSENT 0