summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-08-02 16:49:05 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 17:15:16 +0200
commit0faef109bdac1328b529342bfc8c3d34005a56fe (patch)
treecf887530a0fb66efbd79740343b69b9d983b4c69
parenta890d56a9d9e4a8345c08f9212504bbc396bb7dd (diff)
downloadlinux-0faef109bdac1328b529342bfc8c3d34005a56fe.tar.bz2
char: tlclk: constify attribute_group structures.
attribute_group are not supposed to change at runtime. All functions working with attribute_group 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/char/tlclk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/tlclk.c b/drivers/char/tlclk.c
index 572a51704e67..6210bff46341 100644
--- a/drivers/char/tlclk.c
+++ b/drivers/char/tlclk.c
@@ -766,7 +766,7 @@ static struct attribute *tlclk_sysfs_entries[] = {
NULL
};
-static struct attribute_group tlclk_attribute_group = {
+static const struct attribute_group tlclk_attribute_group = {
.name = NULL, /* put in device directory */
.attrs = tlclk_sysfs_entries,
};