From: Arvind Yadav Date: Tue, 18 Jul 2017 09:45:02 +0000 (+0530) Subject: wireless: iwlegacy: Constify attribute_group structures. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6cbbd7ec06fa605b219cb2a91b653960a5d21aa6;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git wireless: iwlegacy: 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/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, };