aboutsummaryrefslogtreecommitdiffstats
path: root/include/mtd
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2011-08-30 21:45:41 -0400
committerArtem Bityutskiy <artem.bityutskiy@intel.com>2011-09-11 08:29:36 -0400
commitbeb133fc165e1289c858d8f952b982b7d0b313cd (patch)
treed247b021d3e28f16cfaf74e08404a304f554882c /include/mtd
parent0612b9ddc2eeda014dd805c87c752b342d8f80f0 (diff)
mtd: rename MTD_MODE_* to MTD_FILE_MODE_*
These modes hold their state only for the life of their file descriptor, and they overlap functionality with the MTD_OPS_* modes. Particularly, MTD_MODE_RAW and MTD_OPS_RAW cover the same function: to provide raw (i.e., without ECC) access to the flash. In fact, although it may not be clear, MTD_MODE_RAW implied that operations should enable the MTD_OPS_RAW mode. Thus, we should be specific on what each mode means. This is a start, where MTD_FILE_MODE_* actually represents a "file mode," not necessarily a true global MTD mode. 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.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/mtd/mtd-abi.h b/include/mtd/mtd-abi.h
index d30990e1858b..1885aa98b311 100644
--- a/include/mtd/mtd-abi.h
+++ b/include/mtd/mtd-abi.h
@@ -200,10 +200,10 @@ struct mtd_ecc_stats {
200 * Read/write file modes for access to MTD 200 * Read/write file modes for access to MTD
201 */ 201 */
202enum mtd_file_modes { 202enum mtd_file_modes {
203 MTD_MODE_NORMAL = MTD_OTP_OFF, 203 MTD_FILE_MODE_NORMAL = MTD_OTP_OFF,
204 MTD_MODE_OTP_FACTORY = MTD_OTP_FACTORY, 204 MTD_FILE_MODE_OTP_FACTORY = MTD_OTP_FACTORY,
205 MTD_MODE_OTP_USER = MTD_OTP_USER, 205 MTD_FILE_MODE_OTP_USER = MTD_OTP_USER,
206 MTD_MODE_RAW, 206 MTD_FILE_MODE_RAW,
207}; 207};
208 208
209#endif /* __MTD_ABI_H__ */ 209#endif /* __MTD_ABI_H__ */