EDAC: Constify attribute_group structures
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Mon, 17 Jul 2017 08:20:25 +0000 (10:20 +0200)
committerBorislav Petkov <bp@suse.de>
Mon, 17 Jul 2017 08:20:25 +0000 (10:20 +0200)
commit1c18be5a4e3ecbb40fbee015711aea6cc6467417
tree4bd05deb05fa39201a63e29c4c8f3bdc925f94cd
parentfbe63acf62f57f8e51adae602c5ce1025002d5ee
EDAC: Constify attribute_group structures

attribute_groups are not supposed to change at runtime. All functions
working with attribute_groups provided by <linux/sysfs.h> work with
const attribute_group. So mark the non-const structs as const.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
CC: linux-edac@vger.kernel.org
Link: http://lkml.kernel.org/r/776cb8265509054abd01b0b551624cc0da3b88e7.1499078335.git.arvind.yadav.cs@gmail.com
Signed-off-by: Borislav Petkov <bp@suse.de>
drivers/edac/edac_mc_sysfs.c
drivers/edac/i7core_edac.c