diff options
author | Arvind Yadav | 2017-06-30 18:06:34 +0530 |
---|---|---|
committer | Rafael J. Wysocki | 2017-07-04 22:15:20 +0200 |
commit | 7e53626995d44c58ca148bf56e792d1bdd982e0b (patch) | |
tree | 940bcfd53ef376ebda21b27d0713bf5a38432e3b /drivers/acpi | |
parent | 26408b24345b1afbc08727e7a899d59db0d6f21d (diff) |
ACPI: BGRT: constify attribute_group structures
attribute_groups are not supposed to change at runtime. All functions
working with attribute_groups provided by <linux/sysfs.h> work with const
attribute_group. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/bgrt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/bgrt.c b/drivers/acpi/bgrt.c index df1c629205e7..75af78361ce5 100644 --- a/drivers/acpi/bgrt.c +++ b/drivers/acpi/bgrt.c @@ -76,7 +76,7 @@ static struct bin_attribute *bgrt_bin_attributes[] = { NULL, }; -static struct attribute_group bgrt_attribute_group = { +static const struct attribute_group bgrt_attribute_group = { .attrs = bgrt_attributes, .bin_attrs = bgrt_bin_attributes, }; |