aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-06-23 01:13:30 -0400
committerCorey Minyard <cminyard@mvista.com>2017-06-28 21:56:36 -0400
commit1e7a75f74a193f92eb9e5da20d1fb1b388241631 (patch)
treeb2601325c37df1281ebb09d531e856f612811d74
parent87ff091c4061eae16c799af51030b539afec97ef (diff)
char: ipmi: constify bmc_dev_attr_group and bmc_device_type
File size before: text data bss dec hex filename 25678 1024 92 26794 68aa drivers/char/ipmi/ipmi_msghandler.o File size After adding 'const': text data bss dec hex filename 25806 896 92 26794 68aa drivers/char/ipmi/ipmi_msghandler.o Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com> Signed-off-by: Corey Minyard <cminyard@mvista.com>
-rw-r--r--drivers/char/ipmi/ipmi_msghandler.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/char/ipmi/ipmi_msghandler.c b/drivers/char/ipmi/ipmi_msghandler.c
index 49a7e9685e77..810b138f5897 100644
--- a/drivers/char/ipmi/ipmi_msghandler.c
+++ b/drivers/char/ipmi/ipmi_msghandler.c
@@ -2397,7 +2397,7 @@ static umode_t bmc_dev_attr_is_visible(struct kobject *kobj,
2397 return mode; 2397 return mode;
2398} 2398}
2399 2399
2400static struct attribute_group bmc_dev_attr_group = { 2400static const struct attribute_group bmc_dev_attr_group = {
2401 .attrs = bmc_dev_attrs, 2401 .attrs = bmc_dev_attrs,
2402 .is_visible = bmc_dev_attr_is_visible, 2402 .is_visible = bmc_dev_attr_is_visible,
2403}; 2403};
@@ -2407,7 +2407,7 @@ static const struct attribute_group *bmc_dev_attr_groups[] = {
2407 NULL 2407 NULL
2408}; 2408};
2409 2409
2410static struct device_type bmc_device_type = { 2410static const struct device_type bmc_device_type = {
2411 .groups = bmc_dev_attr_groups, 2411 .groups = bmc_dev_attr_groups,
2412}; 2412};
2413 2413