mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] debugfs: regset32: make struct debugfs_reg32 pointer const
@ 2013-01-18 20:40 Felipe Balbi
  0 siblings, 0 replies; only message in thread
From: Felipe Balbi @ 2013-01-18 20:40 UTC (permalink / raw)
  To: Greg KH; +Cc: Linux Kernel Mailing List, Felipe Balbi

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>
---
 include/linux/debugfs.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/debugfs.h b/include/linux/debugfs.h
index 66c434f..63f2465 100644
--- a/include/linux/debugfs.h
+++ b/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;
 };
-- 
1.8.1.rc1.5.g7e0651a


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-01-18 20:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-18 20:40 [PATCH] debugfs: regset32: make struct debugfs_reg32 pointer const Felipe Balbi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®