All of lore.kernel.org
 help / color / mirror / Atom feed
From: Miquel Raynal <miquel.raynal@bootlin.com>
To: Richard Weinberger <richard@nod.at>,
	Vignesh Raghavendra <vigneshr@ti.com>,
	Tudor Ambarus <Tudor.Ambarus@microchip.com>,
	<linux-mtd@lists.infradead.org>
Cc: Boris Brezillon <boris.brezillon@collabora.com>,
	Miquel Raynal <miquel.raynal@bootlin.com>
Subject: [PATCH v2 01/17] mtd: rawnand: nandsim: Consistent use of 'ns' instead of 'dev'
Date: Mon, 25 May 2020 10:58:35 +0200	[thread overview]
Message-ID: <20200525085851.17682-2-miquel.raynal@bootlin.com> (raw)
In-Reply-To: <20200525085851.17682-1-miquel.raynal@bootlin.com>

The nandsim object is called 'ns' almost everywhere, keep it that way
everywhere for consistency.

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
---
 drivers/mtd/nand/raw/nandsim.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/mtd/nand/raw/nandsim.c b/drivers/mtd/nand/raw/nandsim.c
index 23cda67a3f53..0062e4fedcc0 100644
--- a/drivers/mtd/nand/raw/nandsim.c
+++ b/drivers/mtd/nand/raw/nandsim.c
@@ -487,12 +487,12 @@ DEFINE_SHOW_ATTRIBUTE(nandsim);
 
 /**
  * nandsim_debugfs_create - initialize debugfs
- * @dev: nandsim device description object
+ * @ns: nandsim device description object
  *
  * This function creates all debugfs files for UBI device @ubi. Returns zero in
  * case of success and a negative error code in case of failure.
  */
-static int nandsim_debugfs_create(struct nandsim *dev)
+static int nandsim_debugfs_create(struct nandsim *ns)
 {
 	struct dentry *root = nsmtd->dbg.dfs_dir;
 	struct dentry *dent;
@@ -508,8 +508,8 @@ static int nandsim_debugfs_create(struct nandsim *dev)
 		return 0;
 	}
 
-	dent = debugfs_create_file("nandsim_wear_report", S_IRUSR,
-				   root, dev, &nandsim_fops);
+	dent = debugfs_create_file("nandsim_wear_report", S_IRUSR, root, ns,
+				   &nandsim_fops);
 	if (IS_ERR_OR_NULL(dent)) {
 		NS_ERR("cannot create \"nandsim_wear_report\" debugfs entry\n");
 		return -1;
-- 
2.20.1


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

  reply	other threads:[~2020-05-25  8:59 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-25  8:58 [PATCH v2 00/17] Clean nandsim error path Miquel Raynal
2020-05-25  8:58 ` Miquel Raynal [this message]
2020-05-27 14:13   ` [PATCH v2 01/17] mtd: rawnand: nandsim: Consistent use of 'ns' instead of 'dev' Miquel Raynal
2020-05-25  8:58 ` [PATCH v2 02/17] mtd: rawnand: nandsim: Use octal permissions Miquel Raynal
2020-05-27 14:13   ` Miquel Raynal
2020-05-25  8:58 ` [PATCH v2 03/17] mtd: rawnand: nandsim: Use a consistent ns_ prefix for all functions Miquel Raynal
2020-05-27 14:13   ` Miquel Raynal
2020-05-25  8:58 ` [PATCH v2 04/17] mtd: rawnand: nandsim: Clean error handling Miquel Raynal
2020-05-27 14:13   ` Miquel Raynal
2020-05-25  8:58 ` [PATCH v2 05/17] mtd: rawnand: nandsim: Keep track of the created debugfs entries Miquel Raynal
2020-05-27 14:13   ` Miquel Raynal
2020-05-25  8:58 ` [PATCH v2 06/17] mtd: rawnand: nandsim: Remove debugfs entries at unload time Miquel Raynal
2020-05-27 14:13   ` Miquel Raynal
2020-05-25  8:58 ` [PATCH v2 07/17] mtd: rawnand: nandsim: Fix the two ns_alloc_device() error paths Miquel Raynal
2020-05-27 14:12   ` Miquel Raynal
2020-05-25  8:58 ` [PATCH v2 08/17] mtd: rawnand: nandsim: Free partition names on error in ns_init() Miquel Raynal
2020-05-27 14:12   ` Miquel Raynal
2020-05-25  8:58 ` [PATCH v2 09/17] mtd: rawnand: nandsim: Free the allocated device " Miquel Raynal
2020-05-27 14:12   ` Miquel Raynal
2020-05-25  8:58 ` [PATCH v2 10/17] mtd: rawnand: nandsim: Free the partition names in ns_free() Miquel Raynal
2020-05-27 14:12   ` Miquel Raynal
2020-05-25  8:58 ` [PATCH v2 11/17] mtd: rawnand: nandsim: Stop using nand_release() Miquel Raynal
2020-05-27 14:12   ` Miquel Raynal
2020-05-25  8:58 ` [PATCH v2 12/17] mtd: rawnand: nandsim: Use an additional label when freeing the nandsim object Miquel Raynal
2020-05-27 14:12   ` Miquel Raynal
2020-05-25  8:58 ` [PATCH v2 13/17] mtd: rawnand: nandsim: Free erase_block_wear on error Miquel Raynal
2020-05-27 14:12   ` Miquel Raynal
2020-05-25  8:58 ` [PATCH v2 14/17] mtd: rawnand: nandsim: Fix the label pointing on nand_cleanup() Miquel Raynal
2020-05-27 14:12   ` Miquel Raynal
2020-05-25  8:58 ` [PATCH v2 15/17] mtd: rawnand: nandsim: Manage lists on error in ns_init_module() Miquel Raynal
2020-05-27 14:12   ` Miquel Raynal
2020-05-25  8:58 ` [PATCH v2 16/17] mtd: rawnand: nandsim: Rename a label " Miquel Raynal
2020-05-27 14:11   ` Miquel Raynal
2020-05-25  8:58 ` [PATCH v2 17/17] mtd: rawnand: nandsim: Reorganize ns_cleanup_module() Miquel Raynal
2020-05-27 14:11   ` Miquel Raynal
  -- strict thread matches above, loose matches on Subject: below --
2020-05-25  8:52 [PATCH v2 00/17] Clean nandsim error path Miquel Raynal
2020-05-25  8:52 ` [PATCH v2 01/17] mtd: rawnand: nandsim: Consistent use of 'ns' instead of 'dev' Miquel Raynal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200525085851.17682-2-miquel.raynal@bootlin.com \
    --to=miquel.raynal@bootlin.com \
    --cc=Tudor.Ambarus@microchip.com \
    --cc=boris.brezillon@collabora.com \
    --cc=linux-mtd@lists.infradead.org \
    --cc=richard@nod.at \
    --cc=vigneshr@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.