diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-08-02 19:36:20 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-28 17:49:22 +0200 |
commit | df44d30d28cb7dd4f3dc105d843a4a01f5dfc860 (patch) | |
tree | ab33f78c886a0b55409d77753555f5c2cdafb4b0 /drivers/base | |
parent | 6ef2541f268f56a4b93acb0f921c8fc4b74bfc9f (diff) | |
download | linux-df44d30d28cb7dd4f3dc105d843a4a01f5dfc860.tar.gz linux-df44d30d28cb7dd4f3dc105d843a4a01f5dfc860.tar.bz2 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')
-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[] = { NULL }; -static struct attribute_group topology_attr_group = { +static const struct attribute_group topology_attr_group = { .attrs = default_attrs, .name = "topology" }; |