platform/x86: msi-laptop: constify msipf*_attribute_group
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Fri, 23 Jun 2017 10:36:30 +0000 (16:06 +0530)
committerDarren Hart (VMware) <dvhart@infradead.org>
Sat, 1 Jul 2017 03:13:01 +0000 (20:13 -0700)
File size before:
   text    data     bss     dec     hex filename
   5396    5016      85   10497    2901 drivers/platform/x86/msi-laptop.o

File size After adding 'const':
   text    data     bss     dec     hex filename
   5524    4888      85   10497    2901 drivers/platform/x86/msi-laptop.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/msi-laptop.c

index 9e90827c176a2cb456aa1b2ceebce9783d3bf818..61b9014d26106707a65b651ddf3ba313f96b9c1c 100644 (file)
@@ -563,11 +563,11 @@ static struct attribute *msipf_old_attributes[] = {
        NULL
 };
 
-static struct attribute_group msipf_attribute_group = {
+static const struct attribute_group msipf_attribute_group = {
        .attrs = msipf_attributes
 };
 
-static struct attribute_group msipf_old_attribute_group = {
+static const struct attribute_group msipf_old_attribute_group = {
        .attrs = msipf_old_attributes
 };