Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e7a75f7 authored by Arvind Yadav's avatar Arvind Yadav Committed by Corey Minyard
Browse files

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: default avatarArvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent 87ff091c
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -2397,7 +2397,7 @@ static umode_t bmc_dev_attr_is_visible(struct kobject *kobj,
	return mode;
	return mode;
}
}


static struct attribute_group bmc_dev_attr_group = {
static const struct attribute_group bmc_dev_attr_group = {
	.attrs		= bmc_dev_attrs,
	.attrs		= bmc_dev_attrs,
	.is_visible	= bmc_dev_attr_is_visible,
	.is_visible	= bmc_dev_attr_is_visible,
};
};
@@ -2407,7 +2407,7 @@ static const struct attribute_group *bmc_dev_attr_groups[] = {
	NULL
	NULL
};
};


static struct device_type bmc_device_type = {
static const struct device_type bmc_device_type = {
	.groups		= bmc_dev_attr_groups,
	.groups		= bmc_dev_attr_groups,
};
};