projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d012a71
)
mtd: rawnand: Add a kernel doc to the ECC algorithm enumeration
author
Miquel Raynal
<miquel.raynal@bootlin.com>
Thu, 27 Aug 2020 08:51:49 +0000
(10:51 +0200)
committer
Miquel Raynal
<miquel.raynal@bootlin.com>
Thu, 27 Aug 2020 08:55:55 +0000
(10:55 +0200)
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>
Link:
https://lore.kernel.org/linux-mtd/20200827085208.16276-2-miquel.raynal@bootlin.com
include/linux/mtd/rawnand.h
patch
|
blob
|
history
diff --git
a/include/linux/mtd/rawnand.h
b/include/linux/mtd/rawnand.h
index a725b620aca2665eec5e820f0884e6281331836e..1495f22b60cb43bd6595627fb2d41b02c897d5a9 100644
(file)
--- a/
include/linux/mtd/rawnand.h
+++ b/
include/linux/mtd/rawnand.h
@@
-92,6
+92,13
@@
enum nand_ecc_mode {
NAND_ECC_ON_DIE,
};
+/**
+ * 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,