提交 79e19ab5 编写于 作者: A Arvind Yadav 提交者: Darren Hart (VMware)

platform/x86: msi-laptop: constify msipf*_attribute_group

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: NArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: NAndy Shevchenko <andriy.shevchenko@linux.intel.com>
上级 130bbe63
...@@ -563,11 +563,11 @@ static struct attribute *msipf_old_attributes[] = { ...@@ -563,11 +563,11 @@ static struct attribute *msipf_old_attributes[] = {
NULL NULL
}; };
static struct attribute_group msipf_attribute_group = { static const struct attribute_group msipf_attribute_group = {
.attrs = msipf_attributes .attrs = msipf_attributes
}; };
static struct attribute_group msipf_old_attribute_group = { static const struct attribute_group msipf_old_attribute_group = {
.attrs = msipf_old_attributes .attrs = msipf_old_attributes
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册