diff options
Diffstat (limited to 'include/linux/mtd/mtd.h')
-rw-r--r-- | include/linux/mtd/mtd.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index f9bfe526d310..8cc0e2fb6894 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h | |||
@@ -29,9 +29,6 @@ | |||
29 | 29 | ||
30 | #include <asm/div64.h> | 30 | #include <asm/div64.h> |
31 | 31 | ||
32 | #define MTD_CHAR_MAJOR 90 | ||
33 | #define MTD_BLOCK_MAJOR 31 | ||
34 | |||
35 | #define MTD_ERASE_PENDING 0x01 | 32 | #define MTD_ERASE_PENDING 0x01 |
36 | #define MTD_ERASING 0x02 | 33 | #define MTD_ERASING 0x02 |
37 | #define MTD_ERASE_SUSPEND 0x04 | 34 | #define MTD_ERASE_SUSPEND 0x04 |
@@ -354,6 +351,11 @@ static inline int mtd_has_oob(const struct mtd_info *mtd) | |||
354 | return mtd->_read_oob && mtd->_write_oob; | 351 | return mtd->_read_oob && mtd->_write_oob; |
355 | } | 352 | } |
356 | 353 | ||
354 | static inline int mtd_type_is_nand(const struct mtd_info *mtd) | ||
355 | { | ||
356 | return mtd->type == MTD_NANDFLASH || mtd->type == MTD_MLCNANDFLASH; | ||
357 | } | ||
358 | |||
357 | static inline int mtd_can_have_bb(const struct mtd_info *mtd) | 359 | static inline int mtd_can_have_bb(const struct mtd_info *mtd) |
358 | { | 360 | { |
359 | return !!mtd->_block_isbad; | 361 | return !!mtd->_block_isbad; |