Message ID | 20200528113113.9166-6-miquel.raynal@bootlin.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | Introduce the generic ECC engine abstraction | expand |
On Thu, 28 May 2020 13:31:00 +0200 Miquel Raynal <miquel.raynal@bootlin.com> wrote: > Before moving it to the generic raw NAND core, ensure the enumeration > is properly described. > > Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> > --- > include/linux/mtd/rawnand.h | 7 +++++++ > 1 file changed, 7 insertions(+) > > diff --git a/include/linux/mtd/rawnand.h b/include/linux/mtd/rawnand.h > index f6ffd174abb7..6699ec7f4d40 100644 > --- a/include/linux/mtd/rawnand.h > +++ b/include/linux/mtd/rawnand.h > @@ -106,6 +106,13 @@ enum nand_ecc_placement { > NAND_ECC_PLACEMENT_INTERLEAVED, > }; > > +/** > + * enum nand_ecc_algo - NAND ECC algorithm > + * @NAND_ECC_UNKNOWN: Unknown algorithm > + * @NAND_ECC_HAMMING: Hamming algorithm > + * @NAND_ECC_BCH: Bose-Chaudhuri-Hocquenghem algorithm > + * @NAND_ECC_RS: Reed-Solomon algorithm > + */ > enum nand_ecc_algo { > NAND_ECC_UNKNOWN, > NAND_ECC_HAMMING,
diff --git a/include/linux/mtd/rawnand.h b/include/linux/mtd/rawnand.h index f6ffd174abb7..6699ec7f4d40 100644 --- a/include/linux/mtd/rawnand.h +++ b/include/linux/mtd/rawnand.h @@ -106,6 +106,13 @@ enum nand_ecc_placement { NAND_ECC_PLACEMENT_INTERLEAVED, }; +/** + * enum nand_ecc_algo - NAND ECC algorithm + * @NAND_ECC_UNKNOWN: Unknown algorithm + * @NAND_ECC_HAMMING: Hamming algorithm + * @NAND_ECC_BCH: Bose-Chaudhuri-Hocquenghem algorithm + * @NAND_ECC_RS: Reed-Solomon algorithm + */ enum nand_ecc_algo { NAND_ECC_UNKNOWN, NAND_ECC_HAMMING,
Before moving it to the generic raw NAND core, ensure the enumeration is properly described. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> --- include/linux/mtd/rawnand.h | 7 +++++++ 1 file changed, 7 insertions(+)