Skip to content

Commit df616d7

Browse files
masahir0yrichardweinberger
authored andcommitted
mtd: abi: do not use C++ style comments in uapi header
Linux kernel tolerates C++ style comments these days. Actually, the SPDX License tags for .c files start with //. On the other hand, uapi headers are written in more strict C, where the C++ comment style is forbidden. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Acked-by: Richard Weinberger <richard@nod.at> Signed-off-by: Richard Weinberger <richard@nod.at>
1 parent 63898ab commit df616d7

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

‎include/uapi/mtd/mtd-abi.h‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,11 @@ struct mtd_write_req {
113113
#define MTD_CAP_NVRAM (MTD_WRITEABLE | MTD_BIT_WRITEABLE | MTD_NO_ERASE)
114114

115115
/* Obsolete ECC byte placement modes (used with obsolete MEMGETOOBSEL) */
116-
#define MTD_NANDECC_OFF 0 // Switch off ECC (Not recommended)
117-
#define MTD_NANDECC_PLACE 1 // Use the given placement in the structure (YAFFS1 legacy mode)
118-
#define MTD_NANDECC_AUTOPLACE 2 // Use the default placement scheme
119-
#define MTD_NANDECC_PLACEONLY 3 // Use the given placement in the structure (Do not store ecc result on read)
120-
#define MTD_NANDECC_AUTOPL_USR 4 // Use the given autoplacement scheme rather than using the default
116+
#define MTD_NANDECC_OFF 0 /* Switch off ECC (Not recommended) */
117+
#define MTD_NANDECC_PLACE 1 /* Use the given placement in the structure (YAFFS1 legacy mode) */
118+
#define MTD_NANDECC_AUTOPLACE 2 /* Use the default placement scheme */
119+
#define MTD_NANDECC_PLACEONLY 3 /* Use the given placement in the structure (Do not store ecc result on read) */
120+
#define MTD_NANDECC_AUTOPL_USR 4 /* Use the given autoplacement scheme rather than using the default */
121121

122122
/* OTP mode selection */
123123
#define MTD_OTP_OFF 0

0 commit comments

Comments
 (0)