[<prev] [next>] [day] [month] [year] [list]
Message-Id: <6f913e6b3193d223832f5757f57b7c17f36687fb.1498827187.git.arvind.yadav.cs@gmail.com>
Date: Fri, 30 Jun 2017 18:23:50 +0530
From: Arvind Yadav <arvind.yadav.cs@...il.com>
To: rjw@...ysocki.net, lenb@...nel.org, rafael.j.wysocki@...el.com
Cc: linux-acpi@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] 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@...il.com>
---
drivers/acpi/acpi_lpss.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/acpi/acpi_lpss.c b/drivers/acpi/acpi_lpss.c
index 10347e3..e51a1e9 100644
--- a/drivers/acpi/acpi_lpss.c
+++ b/drivers/acpi/acpi_lpss.c
@@ -576,7 +576,7 @@ static ssize_t lpss_ltr_mode_show(struct device *dev,
NULL,
};
-static struct attribute_group lpss_attr_group = {
+static const struct attribute_group lpss_attr_group = {
.attrs = lpss_attrs,
.name = "lpss_ltr",
};
--
1.9.1
Powered by blists - more mailing lists