Browse Source

platform/x86: toshiba_haps: constify haps_attr_group

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>
Arvind Yadav 8 years ago
parent
commit
36a1f2c607
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/platform/x86/toshiba_haps.c

+ 1 - 1
drivers/platform/x86/toshiba_haps.c

@@ -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,
 };