diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-06-30 14:09:05 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-07-04 22:15:14 +0200 |
commit | 26408b24345b1afbc08727e7a899d59db0d6f21d (patch) | |
tree | 1330a284d0ec79548550e00619e17c538e632398 /drivers/soc/versatile | |
parent | ACPI: fix whitespace in pr_fmt() to align log entries (diff) | |
download | linux-26408b24345b1afbc08727e7a899d59db0d6f21d.tar.xz linux-26408b24345b1afbc08727e7a899d59db0d6f21d.zip |
ACPI / power: 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
4622 304 8 4934 1346 drivers/acpi/power.o
File size After adding 'const':
text data bss dec hex filename
4846 80 8 4934 1346 drivers/acpi/power.o
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/soc/versatile')
0 files changed, 0 insertions, 0 deletions