From: Arvind Yadav Date: Fri, 30 Jun 2017 12:53:50 +0000 (+0530) Subject: ACPI / LPSS: constify attribute_group structures X-Git-Tag: v4.13-rc1~64^2^6~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=31945d0eb400f793feff61423db71cb6d866715a;p=linux-platform-drivers-x86.git ACPI / LPSS: 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/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", };