PCI: Constify sysfs attribute_group structures
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Tue, 11 Jul 2017 09:27:07 +0000 (14:57 +0530)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 10 Aug 2017 20:21:40 +0000 (15:21 -0500)
commite7ea9825fa18eccaa25142bf574cfef769d225ed
tree7185a2e9d341681b6e0d3d52df379d949a1ad092
parent16f73eb02d7e1765ccab3d2018e0bd98eb93d973
PCI: Constify sysfs 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
   8480    2024       4   10508    290c drivers/pci/pci-sysfs.o

File size After adding 'const':
   text    data     bss     dec     hex filename
   8736    1768       4   10508    290c drivers/pci/pci-sysfs.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci-sysfs.c