PM / devfreq: constify attribute_group structures.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Mon, 3 Jul 2017 10:10:04 +0000 (15:40 +0530)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 4 Sep 2017 05:33:32 +0000 (14:33 +0900)
commit890462344c2937830ba19c2e4d920765187c29a1
treecf383feab8fbf15ba09035a637456f62a036e017
parent8f0c2b70f94c3fe3eb9cfcbd35e548db1ef4fc5e
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>
drivers/devfreq/governor_userspace.c