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
64571ca7 e00b6c6d

+1 -1
+1 -1
drivers/net/wireless/intel/iwlegacy/3945-mac.c
··· 3464 3464 NULL 3465 3465 }; 3466 3466 3467 - static struct attribute_group il3945_attribute_group = { 3467 + static const struct attribute_group il3945_attribute_group = { 3468 3468 .name = NULL, /* put in device directory */ 3469 3469 .attrs = il3945_sysfs_entries, 3470 3470 };