Skip to contentSkip to conversation

docs: debugfs: Update struct debugfs_reg32 definition

PATCH Applied Rikard Falkeborn 2 participants 2 messages May 8, 2020 – May 15, 2020 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: debugfs: Update struct debugfs_reg32 definition

Update the docs to match the implementation, both the definition of struct debugfs_regset32 and the definition of debugfs_print_regs32().

---
 Documentation/filesystems/debugfs.rst | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
Documentation/filesystems/debugfs.rst +3 -2
index 6c032db235a5..1da7a4b7383d 100644
@@ -166,16 +166,17 @@ file::
     };
 
     struct debugfs_regset32 {
-	struct debugfs_reg32 *regs;
+	const struct debugfs_reg32 *regs;
 	int nregs;
 	void __iomem *base;
+	struct device *dev;     /* Optional device for Runtime PM */
     };
 
     debugfs_create_regset32(const char *name, umode_t mode,
 			    struct dentry *parent,
 			    struct debugfs_regset32 *regset);
 
-    void debugfs_print_regs32(struct seq_file *s, struct debugfs_reg32 *regs,
+    void debugfs_print_regs32(struct seq_file *s, const struct debugfs_reg32 *regs,
 			 int nregs, void __iomem *base, char *prefix);
 
 The "base" argument may be 0, but you may want to build the reg32 array
Signature · 1 line
2.26.2
maintainer Applied
#1 lore raw
Quoted 4 lines · On Fri, 8 May 2020 23:29:49 +0200 Rikard Falkeborn…

Update the docs to match the implementation, both the definition of struct debugfs_regset32 and the definition of debugfs_print_regs32().

Applied, thanks.

jon