Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

base: topology: constify attribute_group structures.

attribute_group are not supposed to change at runtime. All functions
working with attribute_group 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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Arvind Yadav and committed by
Greg Kroah-Hartman
df44d30d 6ef2541f

+1 -1
+1 -1
drivers/base/topology.c
··· 105 105 NULL 106 106 }; 107 107 108 - static struct attribute_group topology_attr_group = { 108 + static const struct attribute_group topology_attr_group = { 109 109 .attrs = default_attrs, 110 110 .name = "topology" 111 111 };