Skip to content

Commit

Permalink
acpi, nfit: constify *_attribute_group
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Dan Williams <[email protected]>
  • Loading branch information
ArvindYadavCs authored and djbw committed Jun 29, 2017
1 parent 56b47fe commit 5e93746
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/acpi/nfit/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
};
Expand Down

0 comments on commit 5e93746

Please sign in to comment.