From a890d56a9d9e4a8345c08f9212504bbc396bb7dd Mon Sep 17 00:00:00 2001 From: Arvind Yadav Date: Fri, 28 Jul 2017 16:00:42 +0530 Subject: w1: constify attribute_group structures. attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: Greg Kroah-Hartman --- drivers/w1/w1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'drivers/w1') 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, }; -- cgit v1.2.3-70-g09d2