diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-02 10:06:20 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-28 11:49:22 -0400 |
commit | df44d30d28cb7dd4f3dc105d843a4a01f5dfc860 (patch) | |
tree | ab33f78c886a0b55409d77753555f5c2cdafb4b0 /drivers/base/topology.c | |
parent | 6ef2541f268f56a4b93acb0f921c8fc4b74bfc9f (diff) |
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.c | 2 |
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[] = { | |||
105 | NULL | 105 | NULL |
106 | }; | 106 | }; |
107 | 107 | ||
108 | static struct attribute_group topology_attr_group = { | 108 | static const struct attribute_group topology_attr_group = { |
109 | .attrs = default_attrs, | 109 | .attrs = default_attrs, |
110 | .name = "topology" | 110 | .name = "topology" |
111 | }; | 111 | }; |