mtd: rawnand: marvell: Rename a function to clarify
Cosmetic change to clarify the purpose of the function. Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Boris Brezillon <boris.brezillon@collabora.com> Link: https://lore.kernel.org/linux-mtd/20200424164501.26719-6-miquel.raynal@bootlin.com
This commit is contained in:
parent
c525b7af96
commit
82c6c04e96
|
@ -2167,8 +2167,8 @@ static const struct mtd_ooblayout_ops marvell_nand_ooblayout_ops = {
|
|||
.free = marvell_nand_ooblayout_free,
|
||||
};
|
||||
|
||||
static int marvell_nand_hw_ecc_ctrl_init(struct mtd_info *mtd,
|
||||
struct nand_ecc_ctrl *ecc)
|
||||
static int marvell_nand_hw_ecc_controller_init(struct mtd_info *mtd,
|
||||
struct nand_ecc_ctrl *ecc)
|
||||
{
|
||||
struct nand_chip *chip = mtd_to_nand(mtd);
|
||||
struct marvell_nfc *nfc = to_marvell_nfc(chip->controller);
|
||||
|
@ -2262,7 +2262,7 @@ static int marvell_nand_ecc_init(struct mtd_info *mtd,
|
|||
|
||||
switch (ecc->mode) {
|
||||
case NAND_ECC_HW:
|
||||
ret = marvell_nand_hw_ecc_ctrl_init(mtd, ecc);
|
||||
ret = marvell_nand_hw_ecc_controller_init(mtd, ecc);
|
||||
if (ret)
|
||||
return ret;
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue