]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit811ef655d298eb58c31109d36e541e8602eb0c36
tree4bd05deb05fa39201a63e29c4c8f3bdc925f94cd
parente4335d7862389c4832c9df484ba3b715cfa4978c
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