[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <8f64f1023108bb764d397b8b1bc854390df16a17.1498202983.git.arvind.yadav.cs@gmail.com>
Date: Fri, 23 Jun 2017 13:06:30 +0530
From: Arvind Yadav <arvind.yadav.cs@...il.com>
To: david.kershner@...sys.com, gregkh@...uxfoundation.org,
bryan.thompson@...sys.com, sameer.wadgaonkar@...sys.com,
jon.frisch@...sys.com
Cc: sparmaintainer@...sys.com, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org
Subject: [PATCH] staging: unisys: visorbus: constify channel_attr_grp and dev_attr_grp
File size before:
text data bss dec hex filename
6712 960 521 8193 2001 drivers/staging/unisys/visorbus/visorbus_main.o
File size After adding 'const':
text data bss dec hex filename
6840 832 521 8193 2001 drivers/staging/unisys/visorbus/visorbus_main.o
Signed-off-by: Arvind Yadav <arvind.yadav.cs@...il.com>
---
drivers/staging/unisys/visorbus/visorbus_main.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers/staging/unisys/visorbus/visorbus_main.c
index a692561..26f9885 100644
--- a/drivers/staging/unisys/visorbus/visorbus_main.c
+++ b/drivers/staging/unisys/visorbus/visorbus_main.c
@@ -249,7 +249,7 @@ static ssize_t typename_show(struct device *dev, struct device_attribute *attr,
NULL
};
-static struct attribute_group channel_attr_grp = {
+static const struct attribute_group channel_attr_grp = {
.name = "channel",
.attrs = channel_attrs,
};
@@ -340,7 +340,7 @@ static ssize_t channel_id_show(struct device *dev,
NULL
};
-static struct attribute_group dev_attr_grp = {
+static const struct attribute_group dev_attr_grp = {
.attrs = dev_attrs,
};
--
1.9.1
Powered by blists - more mailing lists