]> asedeno.scripts.mit.edu Git - linux.git/commit
ACPI: BGRT: constify attribute_group structures
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Fri, 30 Jun 2017 12:36:34 +0000 (18:06 +0530)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 4 Jul 2017 20:15:20 +0000 (22:15 +0200)
commit7e53626995d44c58ca148bf56e792d1bdd982e0b
tree940bcfd53ef376ebda21b27d0713bf5a38432e3b
parent26408b24345b1afbc08727e7a899d59db0d6f21d
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>
drivers/acpi/bgrt.c