From: Arvind Yadav Date: Wed, 2 Aug 2017 14:06:20 +0000 (+0530) Subject: base: topology: constify attribute_group structures. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=df44d30d28cb7dd4f3dc105d843a4a01f5dfc860;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git base: topology: constify attribute_group structures. attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: Greg Kroah-Hartman --- 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" };