iwlegacy: 4965-mac: constify il_sensitivity_ranges structure
authorJulia Lawall <Julia.Lawall@lip6.fr>
Wed, 30 Dec 2015 11:20:49 +0000 (12:20 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 7 Jan 2016 09:09:58 +0000 (11:09 +0200)
The il_sensitivity_ranges is never modified, so declare it as const.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Acked-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intel/iwlegacy/4965-mac.c

index 6656215a13a9239334b9eca21f510342bb28f0d7..fd38aa0763e4f5f30384d29249e7bf205b7d5eeb 100644 (file)
@@ -6416,7 +6416,7 @@ il4965_hw_detect(struct il_priv *il)
        D_INFO("HW Revision ID = 0x%X\n", il->rev_id);
 }
 
-static struct il_sensitivity_ranges il4965_sensitivity = {
+static const struct il_sensitivity_ranges il4965_sensitivity = {
        .min_nrg_cck = 97,
        .max_nrg_cck = 0,       /* not used, set to 0 */