diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-07-18 15:15:02 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-18 12:04:56 -0700 |
commit | 6cbbd7ec06fa605b219cb2a91b653960a5d21aa6 (patch) | |
tree | 059816b2db17a6df18c2623b6cfd9e5909fab287 /drivers | |
parent | 64571ca71bbfa890321ff14cf18c74089a23e4d1 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/intel/iwlegacy/4965-mac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/iwlegacy/4965-mac.c b/drivers/net/wireless/intel/iwlegacy/4965-mac.c index 5b51fba75595..de9b6522c43f 100644 --- a/drivers/net/wireless/intel/iwlegacy/4965-mac.c +++ b/drivers/net/wireless/intel/iwlegacy/4965-mac.c @@ -4654,7 +4654,7 @@ static struct attribute *il_sysfs_entries[] = { NULL }; -static struct attribute_group il_attribute_group = { +static const struct attribute_group il_attribute_group = { .name = NULL, /* put in device directory */ .attrs = il_sysfs_entries, }; |