public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] mtd: rawnand: meson: Fix typo in function name
@ 2024-08-26 15:31 Miquel Raynal
  2024-09-04 14:00 ` Pratyush Yadav
  2024-09-06 15:02 ` Miquel Raynal
  0 siblings, 2 replies; 3+ messages in thread
From: Miquel Raynal @ 2024-08-26 15:31 UTC (permalink / raw)
  To: Richard Weinberger, Vignesh Raghavendra, Tudor Ambarus,
	Pratyush Yadav, Michael Walle, linux-mtd
  Cc: Thomas Petazzoni, Liang Yang, Miquel Raynal

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 <miquel.raynal@bootlin.com>
---
 drivers/mtd/nand/raw/meson_nand.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/mtd/nand/raw/meson_nand.c b/drivers/mtd/nand/raw/meson_nand.c
index 8806a06462ac..fbb06aa305cb 100644
--- a/drivers/mtd/nand/raw/meson_nand.c
+++ b/drivers/mtd/nand/raw/meson_nand.c
@@ -1475,7 +1475,7 @@ meson_nfc_nand_chip_init(struct device *dev,
 	return 0;
 }
 
-static void meson_nfc_nand_chip_cleanup(struct meson_nfc *nfc)
+static void meson_nfc_nand_chips_cleanup(struct meson_nfc *nfc)
 {
 	struct meson_nfc_nand_chip *meson_chip;
 	struct mtd_info *mtd;
@@ -1500,7 +1500,7 @@ static int meson_nfc_nand_chips_init(struct device *dev,
 	for_each_child_of_node_scoped(np, nand_np) {
 		ret = meson_nfc_nand_chip_init(dev, nfc, nand_np);
 		if (ret) {
-			meson_nfc_nand_chip_cleanup(nfc);
+			meson_nfc_nand_chips_cleanup(nfc);
 			return ret;
 		}
 	}
@@ -1614,7 +1614,7 @@ static void meson_nfc_remove(struct platform_device *pdev)
 {
 	struct meson_nfc *nfc = platform_get_drvdata(pdev);
 
-	meson_nfc_nand_chip_cleanup(nfc);
+	meson_nfc_nand_chips_cleanup(nfc);
 
 	meson_nfc_disable_clk(nfc);
 }
-- 
2.43.0


______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] mtd: rawnand: meson: Fix typo in function name
  2024-08-26 15:31 [PATCH] mtd: rawnand: meson: Fix typo in function name Miquel Raynal
@ 2024-09-04 14:00 ` Pratyush Yadav
  2024-09-06 15:02 ` Miquel Raynal
  1 sibling, 0 replies; 3+ messages in thread
From: Pratyush Yadav @ 2024-09-04 14:00 UTC (permalink / raw)
  To: Miquel Raynal
  Cc: Richard Weinberger, Vignesh Raghavendra, Tudor Ambarus,
	Pratyush Yadav, Michael Walle, linux-mtd, Thomas Petazzoni,
	Liang Yang

On Mon, Aug 26 2024, Miquel Raynal wrote:

> 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 <miquel.raynal@bootlin.com>

Reviewed-by: Pratyush Yadav <pratyush@kernel.org>

-- 
Regards,
Pratyush Yadav

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] mtd: rawnand: meson: Fix typo in function name
  2024-08-26 15:31 [PATCH] mtd: rawnand: meson: Fix typo in function name Miquel Raynal
  2024-09-04 14:00 ` Pratyush Yadav
@ 2024-09-06 15:02 ` Miquel Raynal
  1 sibling, 0 replies; 3+ messages in thread
From: Miquel Raynal @ 2024-09-06 15:02 UTC (permalink / raw)
  To: Miquel Raynal, Richard Weinberger, Vignesh Raghavendra,
	Tudor Ambarus, Pratyush Yadav, Michael Walle, linux-mtd
  Cc: Thomas Petazzoni, Liang Yang

On Mon, 2024-08-26 at 15:31:58 UTC, Miquel Raynal wrote:
> 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 <miquel.raynal@bootlin.com>
> Reviewed-by: Pratyush Yadav <pratyush@kernel.org>

Applied to https://git.kernel.org/pub/scm/linux/kernel/git/mtd/linux.git nand/next.

Miquel

______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-09-06 15:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-08-26 15:31 [PATCH] mtd: rawnand: meson: Fix typo in function name Miquel Raynal
2024-09-04 14:00 ` Pratyush Yadav
2024-09-06 15:02 ` Miquel Raynal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox