From: Arvind Yadav Date: Fri, 30 Jun 2017 12:36:34 +0000 (+0530) Subject: ACPI: BGRT: constify attribute_group structures X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=7e53626995d44c58ca148bf56e792d1bdd982e0b;p=openwrt%2Fstaging%2Fblogic.git ACPI: BGRT: constify attribute_group structures attribute_groups are not supposed to change at runtime. All functions working with attribute_groups provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: Rafael J. Wysocki --- 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, };