Skip to content

Commit

Permalink
debugfs: regset32: make struct debugfs_reg32 pointer const
Browse files Browse the repository at this point in the history
no user of that should ever change that pointer,
so let's mark it const to prevent that from
happening.

Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Felipe Balbi authored and Greg Kroah-Hartman committed Jan 18, 2013
1 parent 0d4fb6e commit 833d6e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/linux/debugfs.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ struct debugfs_reg32 {
};

struct debugfs_regset32 {
struct debugfs_reg32 *regs;
const struct debugfs_reg32 *regs;
int nregs;
void __iomem *base;
};
Expand Down

0 comments on commit 833d6e0

Please sign in to comment.