In the nand_ecc_{mode,algo} enumerations, clarify the fact that the value 0 will be used for invalid/uninitialized data. Signed-off-by: Miquel Raynal <miquel.raynal@xxxxxxxxxxx> --- include/linux/mtd/rawnand.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/linux/mtd/rawnand.h b/include/linux/mtd/rawnand.h index d25e0c07b0ad..95b0c7114701 100644 --- a/include/linux/mtd/rawnand.h +++ b/include/linux/mtd/rawnand.h @@ -88,7 +88,7 @@ struct nand_chip; * Constants for ECC_MODES */ enum nand_ecc_mode { - NAND_ECC_INVALID, + NAND_ECC_INVALID = 0, NAND_ECC_NONE, NAND_ECC_SOFT, NAND_ECC_HW, @@ -98,7 +98,7 @@ enum nand_ecc_mode { }; enum nand_ecc_algo { - NAND_ECC_UNKNOWN, + NAND_ECC_UNKNOWN = 0, NAND_ECC_HAMMING, NAND_ECC_BCH, NAND_ECC_RS, -- 2.19.1 ______________________________________________________ Linux MTD discussion mailing list http://lists.infradead.org/mailman/listinfo/linux-mtd/