Skip to content

Commit

Permalink
debugfs: print_regs32: make regs array a const pointer
Browse files Browse the repository at this point in the history
Signed-off-by: Alessandro Rubini <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
rubini authored and gregkh committed Nov 18, 2011
1 parent c8d2a6f commit 8ee4dd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fs/debugfs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ EXPORT_SYMBOL_GPL(debugfs_create_blob);
* because some peripherals have several blocks of identical registers,
* for example configuration of dma channels
*/
int debugfs_print_regs32(struct seq_file *s, struct debugfs_reg32 *regs,
int debugfs_print_regs32(struct seq_file *s, const struct debugfs_reg32 *regs,
int nregs, void __iomem *base, char *prefix)
{
int i, ret = 0;
Expand Down
2 changes: 1 addition & 1 deletion include/linux/debugfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ struct dentry *debugfs_create_regset32(const char *name, mode_t mode,
struct dentry *parent,
struct debugfs_regset32 *regset);

int debugfs_print_regs32(struct seq_file *s, struct debugfs_reg32 *regs,
int debugfs_print_regs32(struct seq_file *s, const struct debugfs_reg32 *regs,
int nregs, void __iomem *base, char *prefix);

bool debugfs_initialized(void);
Expand Down

0 comments on commit 8ee4dd9

Please sign in to comment.