diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-06-30 18:23:50 +0530 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2017-07-04 22:15:24 +0200 |
commit | 31945d0eb400f793feff61423db71cb6d866715a (patch) | |
tree | 1529ad3c0cbeadce2a81d515b6177cc571da21a8 /drivers/acpi/acpi_lpss.c | |
parent | 7e53626995d44c58ca148bf56e792d1bdd982e0b (diff) | |
download | linux-31945d0eb400f793feff61423db71cb6d866715a.tar.bz2 |
ACPI / LPSS: 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/acpi_lpss.c')
-rw-r--r-- | drivers/acpi/acpi_lpss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/acpi/acpi_lpss.c b/drivers/acpi/acpi_lpss.c index 10347e3d73ad..e51a1e98e62f 100644 --- a/drivers/acpi/acpi_lpss.c +++ b/drivers/acpi/acpi_lpss.c @@ -576,7 +576,7 @@ static struct attribute *lpss_attrs[] = { NULL, }; -static struct attribute_group lpss_attr_group = { +static const struct attribute_group lpss_attr_group = { .attrs = lpss_attrs, .name = "lpss_ltr", }; |