From: Arvind Yadav Date: Tue, 11 Jul 2017 09:00:34 +0000 (+0530) Subject: parisc: pdc_stable: constify attribute_group structures. X-Git-Tag: v4.14-rc1~380^2~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=343fdfb7d062a52ff39a004d42e4ad1cf7883bc6;p=platform%2Fkernel%2Flinux-rpi3.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 055f83f..7147aa5 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, };