char: virtio: constify attribute_group structures.
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Wed, 2 Aug 2017 11:21:08 +0000 (16:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 15:57:53 +0000 (17:57 +0200)
commitac317e276700a613057c34f10b2dc714c17d1b15
treec4d7f6099de980b5adceea6224e90d7d61c0d70f
parentc26bbb3ca9c4c58b886497efbeccac7cbd9e98a4
char: virtio: 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/char/virtio_console.c