Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Arvind Yadav and committed by
Rafael J. Wysocki
7e536269 26408b24

+1 -1
+1 -1
drivers/acpi/bgrt.c
··· 76 76 NULL, 77 77 }; 78 78 79 - static struct attribute_group bgrt_attribute_group = { 79 + static const struct attribute_group bgrt_attribute_group = { 80 80 .attrs = bgrt_attributes, 81 81 .bin_attrs = bgrt_bin_attributes, 82 82 };