diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-06-22 15:44:41 +0530 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2017-06-29 13:50:37 -0700 |
commit | 5e93746f065c49445cf8115007fc887789438ec0 (patch) | |
tree | 3e32bf470dd19777e25e5da5cc66b06eb650baf5 /drivers/acpi/nfit | |
parent | 56b47fe6579234e3102f1f28e26fa91fb6c38b3d (diff) |
acpi, nfit: constify *_attribute_group
File size before:
text data bss dec hex filename
20792 1580 994 23366 5b46 drivers/acpi/nfit/core.o
File size After adding 'const':
text data bss dec hex filename
20968 1388 994 23350 5b36 drivers/acpi/nfit/core.o
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/acpi/nfit')
-rw-r--r-- | drivers/acpi/nfit/core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/nfit/core.c b/drivers/acpi/nfit/core.c index facbc6107165..957b13152d1b 100644 --- a/drivers/acpi/nfit/core.c +++ b/drivers/acpi/nfit/core.c @@ -1066,7 +1066,7 @@ static struct attribute *acpi_nfit_attributes[] = { NULL, }; -static struct attribute_group acpi_nfit_attribute_group = { +static const struct attribute_group acpi_nfit_attribute_group = { .name = "nfit", .attrs = acpi_nfit_attributes, .is_visible = nfit_visible, @@ -1346,7 +1346,7 @@ static umode_t acpi_nfit_dimm_attr_visible(struct kobject *kobj, return a->mode; } -static struct attribute_group acpi_nfit_dimm_attribute_group = { +static const struct attribute_group acpi_nfit_dimm_attribute_group = { .name = "nfit", .attrs = acpi_nfit_dimm_attributes, .is_visible = acpi_nfit_dimm_attr_visible, @@ -1640,7 +1640,7 @@ static struct attribute *acpi_nfit_region_attributes[] = { NULL, }; -static struct attribute_group acpi_nfit_region_attribute_group = { +static const struct attribute_group acpi_nfit_region_attribute_group = { .name = "nfit", .attrs = acpi_nfit_region_attributes, }; |