]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
acpi, nfit: constify *_attribute_group
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Thu, 22 Jun 2017 10:14:41 +0000 (15:44 +0530)
committerDan Williams <dan.j.williams@intel.com>
Thu, 29 Jun 2017 20:50:37 +0000 (13:50 -0700)
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>
drivers/acpi/nfit/core.c

index facbc6107165e0dea43c02eb7f52a4bbb2449d5d..957b13152d1bd51b8a45a7a29ed8dce48cbfaa72 100644 (file)
@@ -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,
 };