platform/x86: eeepc-laptop: constify platform_attribute_group
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Fri, 23 Jun 2017 09:10:51 +0000 (14:40 +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
   9934    1136       2   11072    2b40 drivers/platform/x86/eeepc-laptop.o

File size After adding 'const':
   text    data     bss     dec     hex filename
   9998    1072       2   11072    2b40 drivers/platform/x86/eeepc-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/eeepc-laptop.c

index 2426399e1e04ac04e925c77c9a8ef51f3e9defed..5a681962899c32e4d69e147cd8dde49e67ab8cfa 100644 (file)
@@ -445,7 +445,7 @@ static struct attribute *platform_attributes[] = {
        NULL
 };
 
-static struct attribute_group platform_attribute_group = {
+static const struct attribute_group platform_attribute_group = {
        .attrs = platform_attributes
 };