aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-07-03 06:10:04 -0400
committerMyungJoo Ham <myungjoo.ham@samsung.com>2017-07-05 21:17:24 -0400
commit37d644aa01c092686af8a96f34df93c74e55b480 (patch)
tree74755a7a40fad91af97709d0a47fbd2728ffeb5a
parent9e578b37505018622dfafc40eed7cd78ff2af221 (diff)
PM / devfreq: 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. File size before: text data bss dec hex filename 621 176 0 797 31d drivers/devfreq/governor_userspace.o File size After adding 'const': text data bss dec hex filename 670 144 0 814 32e drivers/devfreq/governor_userspace.o Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com> Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
-rw-r--r--drivers/devfreq/governor_userspace.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/devfreq/governor_userspace.c b/drivers/devfreq/governor_userspace.c
index 176976068bcd..77028c27593c 100644
--- a/drivers/devfreq/governor_userspace.c
+++ b/drivers/devfreq/governor_userspace.c
@@ -86,7 +86,7 @@ static struct attribute *dev_entries[] = {
86 &dev_attr_set_freq.attr, 86 &dev_attr_set_freq.attr,
87 NULL, 87 NULL,
88}; 88};
89static struct attribute_group dev_attr_group = { 89static const struct attribute_group dev_attr_group = {
90 .name = "userspace", 90 .name = "userspace",
91 .attrs = dev_entries, 91 .attrs = dev_entries,
92}; 92};