]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit466aab3f077831b21e8471e7f4ea7cf39bf3e02b
treec4d7f6099de980b5adceea6224e90d7d61c0d70f
parentd917ca9a069d5ea0fc60696bdba013aab076af24
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