From: Arvind Yadav Date: Tue, 11 Jul 2017 09:00:34 +0000 (+0530) Subject: parisc: pdc_stable: constify attribute_group structures. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=343fdfb7d062a52ff39a004d42e4ad1cf7883bc6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git parisc: pdc_stable: constify attribute_group structures. attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: Helge Deller --- diff --git a/drivers/parisc/pdc_stable.c b/drivers/parisc/pdc_stable.c index 055f83fddc18..7147aa53e9a2 100644 --- a/drivers/parisc/pdc_stable.c +++ b/drivers/parisc/pdc_stable.c @@ -954,7 +954,7 @@ static struct attribute *pdcs_subsys_attrs[] = { NULL, }; -static struct attribute_group pdcs_attr_group = { +static const struct attribute_group pdcs_attr_group = { .attrs = pdcs_subsys_attrs, };