diff options
author | Arvind Yadav <arvind.yadav.cs@gmail.com> | 2017-07-18 15:14:59 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-07-18 12:04:56 -0700 |
commit | d7979553ef3e8927fe3f035e5d2a7e1749c27780 (patch) | |
tree | 4953d3728a88d8af822e4c4cb3a39ade20d86fc0 /drivers | |
parent | 7eaf0d93f9d85527086a483d5d200b421aa325c6 (diff) | |
download | linux-d7979553ef3e8927fe3f035e5d2a7e1749c27780.tar.bz2 |
wireless: ipw2200: 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/ipw2x00/ipw2200.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/intel/ipw2x00/ipw2200.c b/drivers/net/wireless/intel/ipw2x00/ipw2200.c index 9368abdf18e2..c311b1a994c1 100644 --- a/drivers/net/wireless/intel/ipw2x00/ipw2200.c +++ b/drivers/net/wireless/intel/ipw2x00/ipw2200.c @@ -11500,7 +11500,7 @@ static struct attribute *ipw_sysfs_entries[] = { NULL }; -static struct attribute_group ipw_attribute_group = { +static const struct attribute_group ipw_attribute_group = { .name = NULL, /* put in device directory */ .attrs = ipw_sysfs_entries, }; |