Skip to contentSkip to conversation

debugfs: regset32: make struct debugfs_reg32 pointer const

PATCH New Felipe Balbi 1 participant 1 message Jan 18, 2013 Driver core

lore
Share & tools
lore
#0 lore raw

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.

---
 include/linux/debugfs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/debugfs.h +1 -1
index 66c434f..63f2465 100644
@@ -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