From: Arvind Yadav Date: Tue, 18 Jul 2017 09:44:59 +0000 (+0530) Subject: wireless: ipw2200: constify attribute_group structures. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d7979553ef3e8927fe3f035e5d2a7e1749c27780;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git wireless: ipw2200: constify attribute_group structures. attribute_group are not supposed to change at runtime. All functions working with attribute_group provided by work with const attribute_group. So mark the non-const structs as const. Signed-off-by: Arvind Yadav Signed-off-by: David S. Miller --- 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, };