Skip to content

Commit fd79cfd

Browse files
rikardfalkebornJonathan Corbet
authored andcommitted
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: 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>
1 parent 036168e commit fd79cfd

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

‎Documentation/filesystems/debugfs.rst‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,16 +166,17 @@ file::
166166
};
167167

168168
struct debugfs_regset32 {
169-
struct debugfs_reg32 *regs;
169+
const struct debugfs_reg32 *regs;
170170
int nregs;
171171
void __iomem *base;
172+
struct device *dev; /* Optional device for Runtime PM */
172173
};
173174

174175
debugfs_create_regset32(const char *name, umode_t mode,
175176
struct dentry *parent,
176177
struct debugfs_regset32 *regset);
177178

178-
void debugfs_print_regs32(struct seq_file *s, struct debugfs_reg32 *regs,
179+
void debugfs_print_regs32(struct seq_file *s, const struct debugfs_reg32 *regs,
179180
int nregs, void __iomem *base, char *prefix);
180181

181182
The "base" argument may be 0, but you may want to build the reg32 array

0 commit comments

Comments
 (0)