platform/x86: toshiba_haps: constify haps_attr_group
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Fri, 23 Jun 2017 08:35:56 +0000 (14:05 +0530)
committerDarren Hart (VMware) <dvhart@infradead.org>
Wed, 28 Jun 2017 16:01:37 +0000 (09:01 -0700)
File size before:
   text    data     bss     dec     hex filename
   1471     528       8    2007     7d7 drivers/platform/x86/toshiba_haps.o

File size After adding 'const':
   text    data     bss     dec     hex filename
   1519     464       8    1991     7c7 drivers/platform/x86/toshiba_haps.o

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

index b3dec521e2b650069dbb54f2f064fbb4e1d1c5db..fb27366025589dc9e10fe37606d7c3818717495f 100644 (file)
@@ -132,7 +132,7 @@ static struct attribute *haps_attributes[] = {
        NULL,
 };
 
-static struct attribute_group haps_attr_group = {
+static const struct attribute_group haps_attr_group = {
        .attrs = haps_attributes,
 };