debugfs: regset32: make struct debugfs_reg32 pointer const
PATCH 1/1 debugfs: regset32: make struct debugfs_reg32 pointer const
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 <[email protected]>
--- include/linux/debugfs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/debugfs.h +1 -1
@@ -33,7 +33,7 @@ struct debugfs_reg32 { };struct debugfs_regset32 { -struct debugfs_reg32 *regs; +const struct debugfs_reg32 *regs;int nregs;void __iomem *base; };
Signature · 1 line
1.8.1.rc1.5.g7e0651a