浏览代码

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 <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Felipe Balbi 12 年之前
父节点
当前提交
833d6e01b4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/linux/debugfs.h

+ 1 - 1
include/linux/debugfs.h

@@ -33,7 +33,7 @@ struct debugfs_reg32 {
 };
 
 struct debugfs_regset32 {
-	struct debugfs_reg32 *regs;
+	const struct debugfs_reg32 *regs;
 	int nregs;
 	void __iomem *base;
 };