[PATCH] PM / CPU: constify *_attribute_group.

From: Arvind Yadav
Date: Thu Jun 22 2017 - 07:49:44 EST


File size before:
text data bss dec hex filename
2280 776 4 3060 bf4 drivers/base/cpu.o

File size After adding 'const':
text data bss dec hex filename
2384 648 4 3036 bdc drivers/base/cpu.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@xxxxxxxxx>
---
drivers/base/cpu.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c
index 2c3b359..d61e96b 100644
--- a/drivers/base/cpu.c
+++ b/drivers/base/cpu.c
@@ -176,7 +176,7 @@ static ssize_t show_crash_notes_size(struct device *dev,
NULL
};

-static struct attribute_group crash_note_cpu_attr_group = {
+static const struct attribute_group crash_note_cpu_attr_group = {
.attrs = crash_note_cpu_attrs,
};
#endif
@@ -469,7 +469,7 @@ struct device *cpu_device_create(struct device *parent, void *drvdata,
NULL
};

-static struct attribute_group cpu_root_attr_group = {
+static const struct attribute_group cpu_root_attr_group = {
.attrs = cpu_root_attrs,
};

--
1.9.1