Skip to content

Commit 8ee4dd9

Browse files
rubinigregkh
authored andcommitted
debugfs: print_regs32: make regs array a const pointer
Signed-off-by: Alessandro Rubini <rubini@gnudd.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent c8d2a6f commit 8ee4dd9

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎fs/debugfs/file.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ EXPORT_SYMBOL_GPL(debugfs_create_blob);
548548
* because some peripherals have several blocks of identical registers,
549549
* for example configuration of dma channels
550550
*/
551-
int debugfs_print_regs32(struct seq_file *s, struct debugfs_reg32 *regs,
551+
int debugfs_print_regs32(struct seq_file *s, const struct debugfs_reg32 *regs,
552552
int nregs, void __iomem *base, char *prefix)
553553
{
554554
int i, ret = 0;

‎include/linux/debugfs.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ struct dentry *debugfs_create_regset32(const char *name, mode_t mode,
9090
struct dentry *parent,
9191
struct debugfs_regset32 *regset);
9292

93-
int debugfs_print_regs32(struct seq_file *s, struct debugfs_reg32 *regs,
93+
int debugfs_print_regs32(struct seq_file *s, const struct debugfs_reg32 *regs,
9494
int nregs, void __iomem *base, char *prefix);
9595

9696
bool debugfs_initialized(void);

0 commit comments

Comments
 (0)