]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
debugfs: regset32: make struct debugfs_reg32 pointer const
authorFelipe Balbi <balbi@ti.com>
Fri, 18 Jan 2013 20:40:32 +0000 (22:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jan 2013 23:25:53 +0000 (15:25 -0800)
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>
include/linux/debugfs.h

index 66c434f5dd1e05243d616f408679fa4a843336cb..63f2465807d4094fb4f2fc6fe717688344f3e4e0 100644 (file)
@@ -33,7 +33,7 @@ struct debugfs_reg32 {
 };
 
 struct debugfs_regset32 {
-       struct debugfs_reg32 *regs;
+       const struct debugfs_reg32 *regs;
        int nregs;
        void __iomem *base;
 };