OSDN Git Service

mtd: nand: Rename a core structure
authorMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 29 May 2020 00:25:10 +0000 (02:25 +0200)
committerMiquel Raynal <miquel.raynal@bootlin.com>
Fri, 26 Jun 2020 06:35:04 +0000 (08:35 +0200)
Prepare the migration to a generic ECC engine by renaming the
nand_ecc_req structure into nand_ecc_props. This structure will be the
base of a wider 'nand_ecc' structure.

In nand_device, these properties are still named "eccreq" even if
"eccprops" might be more descriptive. This is just a transition step,
this field is being replaced very soon by a much wider structure. The
impact of renaming this field would be huge compared to its interest.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com>
Link: https://lore.kernel.org/linux-mtd/20200529002517.3546-14-miquel.raynal@bootlin.com
include/linux/mtd/nand.h
include/linux/mtd/spinand.h

index a1f38c7..af99041 100644 (file)
@@ -116,11 +116,11 @@ struct nand_page_io_req {
 };
 
 /**
- * struct nand_ecc_req - NAND ECC requirements
+ * struct nand_ecc_props - NAND ECC properties
  * @strength: ECC strength
- * @step_size: ECC step/block size
+ * @step_size: Number of bytes per step
  */
-struct nand_ecc_req {
+struct nand_ecc_props {
        unsigned int strength;
        unsigned int step_size;
 };
@@ -179,7 +179,7 @@ struct nand_ops {
 struct nand_device {
        struct mtd_info mtd;
        struct nand_memory_organization memorg;
-       struct nand_ecc_req eccreq;
+       struct nand_ecc_props eccreq;
        struct nand_row_converter rowconv;
        struct nand_bbt bbt;
        const struct nand_ops *ops;
index 1077c45..7b78c4b 100644 (file)
@@ -309,7 +309,7 @@ struct spinand_info {
        struct spinand_devid devid;
        u32 flags;
        struct nand_memory_organization memorg;
-       struct nand_ecc_req eccreq;
+       struct nand_ecc_props eccreq;
        struct spinand_ecc_info eccinfo;
        struct {
                const struct spinand_op_variants *read_cache;