ACPI / power: constify attribute_group structures
commit26408b24345b1afbc08727e7a899d59db0d6f21d
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Fri, 30 Jun 2017 12:09:05 +0000 (30 17:39 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 4 Jul 2017 20:15:14 +0000 (4 22:15 +0200)
tree1330a284d0ec79548550e00619e17c538e632398
parentb6aeab44ed387e5264d2969bc7deee993b29a515
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>
drivers/acpi/power.c