summaryrefslogtreecommitdiffstats
path: root/drivers/acpi
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-06-30 14:36:34 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2017-07-04 22:15:20 +0200
commit7e53626995d44c58ca148bf56e792d1bdd982e0b (patch)
tree940bcfd53ef376ebda21b27d0713bf5a38432e3b /drivers/acpi
parentACPI / power: constify attribute_group structures (diff)
downloadlinux-7e53626995d44c58ca148bf56e792d1bdd982e0b.tar.xz
linux-7e53626995d44c58ca148bf56e792d1bdd982e0b.zip
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.c2
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,
};