Skip to content

Commit

Permalink
docs: debugfs: Update struct debugfs_reg32 definition
Browse files Browse the repository at this point in the history
Update the docs to match the implementation, both the definition of
struct debugfs_regset32 and the definition of debugfs_print_regs32().

Signed-off-by: Rikard Falkeborn <rikard.falkeborn@gmail.com>
Link: https://lore.kernel.org/r/20200508212949.2867-1-rikard.falkeborn@gmail.com
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
  • Loading branch information
Rikard Falkeborn authored and Jonathan Corbet committed May 15, 2020
1 parent 036168e commit fd79cfd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Documentation/filesystems/debugfs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fd79cfd

Please sign in to comment.