diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-07-28 16:00:42 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-08-28 17:15:16 +0200 |
commit | a890d56a9d9e4a8345c08f9212504bbc396bb7dd (patch) | |
tree | 2de5b05924df00ba4d75ba4b6c53fb1993bf5e06 | |
parent | 47a6623b2d678bc5ce6d3fefbb26b4392bec4929 (diff) | |
download | linux-stable-a890d56a9d9e4a8345c08f9212504bbc396bb7dd.tar.gz linux-stable-a890d56a9d9e4a8345c08f9212504bbc396bb7dd.tar.bz2 linux-stable-a890d56a9d9e4a8345c08f9212504bbc396bb7dd.zip |
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>
-rw-r--r-- | drivers/w1/w1.c | 2 |
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, }; |