Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1673469 > unrolled thread

[PATCH] msi-laptop: constify *_attribute_group

Started byArvind Yadav <arvind.yadav.cs@gmail.com>
First post2017-06-23 12:40 +0200
Last post2017-06-23 12:40 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] msi-laptop: constify *_attribute_group Arvind Yadav <arvind.yadav.cs@gmail.com> - 2017-06-23 12:40 +0200

#1673469 — [PATCH] msi-laptop: constify *_attribute_group

FromArvind Yadav <arvind.yadav.cs@gmail.com>
Date2017-06-23 12:40 +0200
Subject[PATCH] msi-laptop: constify *_attribute_group
Message-ID<tVuam-YI-23@gated-at.bofh.it>
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>
---
 drivers/platform/x86/msi-laptop.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/platform/x86/msi-laptop.c b/drivers/platform/x86/msi-laptop.c
index 9e90827..61b9014 100644
--- a/drivers/platform/x86/msi-laptop.c
+++ b/drivers/platform/x86/msi-laptop.c
@@ -563,11 +563,11 @@ static DEVICE_ATTR(auto_brightness, 0644, show_auto_brightness,
 	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
 };
 
-- 
1.9.1

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web