w1: constify attribute_group structures.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Fri, 28 Jul 2017 10:30:42 +0000 (16:00 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 15:15:16 +0000 (17:15 +0200)
commita890d56a9d9e4a8345c08f9212504bbc396bb7dd
tree2de5b05924df00ba4d75ba4b6c53fb1993bf5e06
parent47a6623b2d678bc5ce6d3fefbb26b4392bec4929
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>
drivers/w1/w1.c