summaryrefslogtreecommitdiffstats
path: root/drivers/base/topology.c
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-02 16:06:20 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 17:49:22 +0200
commitdf44d30d28cb7dd4f3dc105d843a4a01f5dfc860 (patch)
treeab33f78c886a0b55409d77753555f5c2cdafb4b0 /drivers/base/topology.c
parentbase: Convert to using %pOF instead of full_name (diff)
downloadlinux-df44d30d28cb7dd4f3dc105d843a4a01f5dfc860.tar.xz
linux-df44d30d28cb7dd4f3dc105d843a4a01f5dfc860.zip
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>
Diffstat (limited to 'drivers/base/topology.c')
-rw-r--r--drivers/base/topology.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/topology.c b/drivers/base/topology.c
index d6ec1c546f5b..d936fcf9f1fb 100644
--- a/drivers/base/topology.c
+++ b/drivers/base/topology.c
@@ -105,7 +105,7 @@ static struct attribute *default_attrs[] = {
NULL
};
-static struct attribute_group topology_attr_group = {
+static const struct attribute_group topology_attr_group = {
.attrs = default_attrs,
.name = "topology"
};