Commit fd79cfd7 authored by Rikard Falkeborn's avatar Rikard Falkeborn Committed by Jonathan Corbet

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().
Signed-off-by: default avatarRikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20200508212949.2867-1-rikard.falkeborn@gmail.comSigned-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 036168e3
...@@ -166,16 +166,17 @@ file:: ...@@ -166,16 +166,17 @@ file::
}; };
struct debugfs_regset32 { struct debugfs_regset32 {
struct debugfs_reg32 *regs; const struct debugfs_reg32 *regs;
int nregs; int nregs;
void __iomem *base; void __iomem *base;
struct device *dev; /* Optional device for Runtime PM */
}; };
debugfs_create_regset32(const char *name, umode_t mode, debugfs_create_regset32(const char *name, umode_t mode,
struct dentry *parent, struct dentry *parent,
struct debugfs_regset32 *regset); 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); int nregs, void __iomem *base, char *prefix);
The "base" argument may be 0, but you may want to build the reg32 array The "base" argument may be 0, but you may want to build the reg32 array
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment