Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

wireless: iwlegacy: 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: David S. Miller <davem@davemloft.net>

authored by

Arvind Yadav and committed by
David S. Miller
6cbbd7ec 64571ca7

+1 -1
+1 -1
drivers/net/wireless/intel/iwlegacy/4965-mac.c
··· 4654 4654 NULL 4655 4655 }; 4656 4656 4657 - static struct attribute_group il_attribute_group = { 4657 + static const struct attribute_group il_attribute_group = { 4658 4658 .name = NULL, /* put in device directory */ 4659 4659 .attrs = il_sysfs_entries, 4660 4660 };