diff options
author | Brian Norris <computersforpeace@gmail.com> | 2011-08-23 20:17:36 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@intel.com> | 2011-09-11 08:02:18 -0400 |
commit | e2e24e8ebf0e96571fbbac95c215df6a2cebbc5b (patch) | |
tree | 7d381dd733de3e2f342cb0eabe56c641b6d68309 /include/linux/mtd | |
parent | 32c8db8f622a4cb8ea9d571d462580f7137babbb (diff) |
mtd: style fixups in multi-line comment, indentation
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@intel.com>
Diffstat (limited to 'include/linux/mtd')
-rw-r--r-- | include/linux/mtd/mtd.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index 68ea22963a33..ff7bae08c5e0 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h | |||
@@ -33,17 +33,19 @@ | |||
33 | #define MTD_CHAR_MAJOR 90 | 33 | #define MTD_CHAR_MAJOR 90 |
34 | #define MTD_BLOCK_MAJOR 31 | 34 | #define MTD_BLOCK_MAJOR 31 |
35 | 35 | ||
36 | #define MTD_ERASE_PENDING 0x01 | 36 | #define MTD_ERASE_PENDING 0x01 |
37 | #define MTD_ERASING 0x02 | 37 | #define MTD_ERASING 0x02 |
38 | #define MTD_ERASE_SUSPEND 0x04 | 38 | #define MTD_ERASE_SUSPEND 0x04 |
39 | #define MTD_ERASE_DONE 0x08 | 39 | #define MTD_ERASE_DONE 0x08 |
40 | #define MTD_ERASE_FAILED 0x10 | 40 | #define MTD_ERASE_FAILED 0x10 |
41 | 41 | ||
42 | #define MTD_FAIL_ADDR_UNKNOWN -1LL | 42 | #define MTD_FAIL_ADDR_UNKNOWN -1LL |
43 | 43 | ||
44 | /* If the erase fails, fail_addr might indicate exactly which block failed. If | 44 | /* |
45 | fail_addr = MTD_FAIL_ADDR_UNKNOWN, the failure was not at the device level or was not | 45 | * If the erase fails, fail_addr might indicate exactly which block failed. If |
46 | specific to any particular block. */ | 46 | * fail_addr = MTD_FAIL_ADDR_UNKNOWN, the failure was not at the device level |
47 | * or was not specific to any particular block. | ||
48 | */ | ||
47 | struct erase_info { | 49 | struct erase_info { |
48 | struct mtd_info *mtd; | 50 | struct mtd_info *mtd; |
49 | uint64_t addr; | 51 | uint64_t addr; |
@@ -60,7 +62,7 @@ struct erase_info { | |||
60 | }; | 62 | }; |
61 | 63 | ||
62 | struct mtd_erase_region_info { | 64 | struct mtd_erase_region_info { |
63 | uint64_t offset; /* At which this region starts, from the beginning of the MTD */ | 65 | uint64_t offset; /* At which this region starts, from the beginning of the MTD */ |
64 | uint32_t erasesize; /* For this region */ | 66 | uint32_t erasesize; /* For this region */ |
65 | uint32_t numblocks; /* Number of blocks of erasesize in this region */ | 67 | uint32_t numblocks; /* Number of blocks of erasesize in this region */ |
66 | unsigned long *lockmap; /* If keeping bitmap of locks */ | 68 | unsigned long *lockmap; /* If keeping bitmap of locks */ |