Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Rikard Falkeborn and committed by
Jonathan Corbet
fd79cfd7 036168e3

+3 -2
+3 -2
Documentation/filesystems/debugfs.rst
··· 166 166 }; 167 167 168 168 struct debugfs_regset32 { 169 - struct debugfs_reg32 *regs; 169 + const struct debugfs_reg32 *regs; 170 170 int nregs; 171 171 void __iomem *base; 172 + struct device *dev; /* Optional device for Runtime PM */ 172 173 }; 173 174 174 175 debugfs_create_regset32(const char *name, umode_t mode, 175 176 struct dentry *parent, 176 177 struct debugfs_regset32 *regset); 177 178 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, 179 180 int nregs, void __iomem *base, char *prefix); 180 181 181 182 The "base" argument may be 0, but you may want to build the reg32 array