Skip to content

Commit 9ab52d9

Browse files
committed
mtd: rawnand: meson: Fix typo in function name
There is a reason why sometime we write "NAND chip" with an 's'. It usually means several chips can be managed by the same controller. So when initializing a single chip at a time, the wording "chip" must be used, otherwise when talking about all the chips managed by the controller, we want to use "chips". Fix the function name to clarify the meson_nfc_nand_chip*s*_cleanup() helper intend. Signed-off-by: Miquel Raynal <[email protected]> Reviewed-by: Pratyush Yadav <[email protected]> Link: https://lore.kernel.org/linux-mtd/[email protected]
1 parent 1181385 commit 9ab52d9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/mtd/nand/raw/meson_nand.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1475,7 +1475,7 @@ meson_nfc_nand_chip_init(struct device *dev,
14751475
return 0;
14761476
}
14771477

1478-
static void meson_nfc_nand_chip_cleanup(struct meson_nfc *nfc)
1478+
static void meson_nfc_nand_chips_cleanup(struct meson_nfc *nfc)
14791479
{
14801480
struct meson_nfc_nand_chip *meson_chip;
14811481
struct mtd_info *mtd;
@@ -1500,7 +1500,7 @@ static int meson_nfc_nand_chips_init(struct device *dev,
15001500
for_each_child_of_node_scoped(np, nand_np) {
15011501
ret = meson_nfc_nand_chip_init(dev, nfc, nand_np);
15021502
if (ret) {
1503-
meson_nfc_nand_chip_cleanup(nfc);
1503+
meson_nfc_nand_chips_cleanup(nfc);
15041504
return ret;
15051505
}
15061506
}
@@ -1614,7 +1614,7 @@ static void meson_nfc_remove(struct platform_device *pdev)
16141614
{
16151615
struct meson_nfc *nfc = platform_get_drvdata(pdev);
16161616

1617-
meson_nfc_nand_chip_cleanup(nfc);
1617+
meson_nfc_nand_chips_cleanup(nfc);
16181618

16191619
meson_nfc_disable_clk(nfc);
16201620
}

0 commit comments

Comments
 (0)