Commit 85f54c55 authored by Miquel Raynal's avatar Miquel Raynal

mtd: nand: Rename a core structure

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: default avatarMiquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: default avatarBoris Brezillon <boris.brezillon@collabora.com>
Link: https://lore.kernel.org/linux-mtd/20200529002517.3546-14-miquel.raynal@bootlin.com
parent 6232095c
...@@ -116,11 +116,11 @@ struct nand_page_io_req { ...@@ -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 * @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 strength;
unsigned int step_size; unsigned int step_size;
}; };
...@@ -179,7 +179,7 @@ struct nand_ops { ...@@ -179,7 +179,7 @@ struct nand_ops {
struct nand_device { struct nand_device {
struct mtd_info mtd; struct mtd_info mtd;
struct nand_memory_organization memorg; struct nand_memory_organization memorg;
struct nand_ecc_req eccreq; struct nand_ecc_props eccreq;
struct nand_row_converter rowconv; struct nand_row_converter rowconv;
struct nand_bbt bbt; struct nand_bbt bbt;
const struct nand_ops *ops; const struct nand_ops *ops;
......
...@@ -309,7 +309,7 @@ struct spinand_info { ...@@ -309,7 +309,7 @@ struct spinand_info {
struct spinand_devid devid; struct spinand_devid devid;
u32 flags; u32 flags;
struct nand_memory_organization memorg; struct nand_memory_organization memorg;
struct nand_ecc_req eccreq; struct nand_ecc_props eccreq;
struct spinand_ecc_info eccinfo; struct spinand_ecc_info eccinfo;
struct { struct {
const struct spinand_op_variants *read_cache; const struct spinand_op_variants *read_cache;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment