summaryrefslogtreecommitdiffstats
path: root/drivers/w1
diff options
context:
space:
mode:
authorArvind Yadav <arvind.yadav.cs@gmail.com>2017-07-28 16:00:42 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-08-28 17:15:16 +0200
commita890d56a9d9e4a8345c08f9212504bbc396bb7dd (patch)
tree2de5b05924df00ba4d75ba4b6c53fb1993bf5e06 /drivers/w1
parent47a6623b2d678bc5ce6d3fefbb26b4392bec4929 (diff)
downloadlinux-a890d56a9d9e4a8345c08f9212504bbc396bb7dd.tar.bz2
w1: 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>
Diffstat (limited to 'drivers/w1')
-rw-r--r--drivers/w1/w1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/w1/w1.c b/drivers/w1/w1.c
index 74471e7aa5cc..0f614dfcb09f 100644
--- a/drivers/w1/w1.c
+++ b/drivers/w1/w1.c
@@ -568,7 +568,7 @@ static struct attribute *w1_master_default_attrs[] = {
NULL
};
-static struct attribute_group w1_master_defattr_group = {
+static const struct attribute_group w1_master_defattr_group = {
.attrs = w1_master_default_attrs,
};