Skip to content

Commit e2e24e8

Browse files
computersforpeacededekind
authored andcommitted
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>
1 parent 32c8db8 commit e2e24e8

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

‎include/linux/mtd/mtd.h‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,19 @@
3333
#define MTD_CHAR_MAJOR 90
3434
#define MTD_BLOCK_MAJOR 31
3535

36-
#define MTD_ERASE_PENDING 0x01
36+
#define MTD_ERASE_PENDING 0x01
3737
#define MTD_ERASING 0x02
3838
#define MTD_ERASE_SUSPEND 0x04
39-
#define MTD_ERASE_DONE 0x08
40-
#define MTD_ERASE_FAILED 0x10
39+
#define MTD_ERASE_DONE 0x08
40+
#define MTD_ERASE_FAILED 0x10
4141

4242
#define MTD_FAIL_ADDR_UNKNOWN -1LL
4343

44-
/* If the erase fails, fail_addr might indicate exactly which block failed. If
45-
fail_addr = MTD_FAIL_ADDR_UNKNOWN, the failure was not at the device level or was not
46-
specific to any particular block. */
44+
/*
45+
* If the erase fails, fail_addr might indicate exactly which block failed. If
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+
*/
4749
struct erase_info {
4850
struct mtd_info *mtd;
4951
uint64_t addr;
@@ -60,7 +62,7 @@ struct erase_info {
6062
};
6163

6264
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 */
6466
uint32_t erasesize; /* For this region */
6567
uint32_t numblocks; /* Number of blocks of erasesize in this region */
6668
unsigned long *lockmap; /* If keeping bitmap of locks */

0 commit comments

Comments
 (0)