diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-07-11 14:30:34 +0530 |
---|---|---|
committer | Helge Deller <deller@gmx.de> | 2017-07-23 21:02:17 +0200 |
commit | 343fdfb7d062a52ff39a004d42e4ad1cf7883bc6 (patch) | |
tree | 4cd7147094594c512d561aa76627167245e76a44 | |
parent | 6cd819e8e978b361ae558056a9e79fd30e6acb0d (diff) | |
download | linux-343fdfb7d062a52ff39a004d42e4ad1cf7883bc6.tar.bz2 |
parisc: pdc_stable: constify attribute_group structures.
attribute_groups are not supposed to change at runtime. All functions
working with attribute_groups 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: Helge Deller <deller@gmx.de>
-rw-r--r-- | drivers/parisc/pdc_stable.c | 2 |
1 files changed, 1 insertions, 1 deletions
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, }; |