* [PATCH] iwlegacy: 4965-mac: constify il_sensitivity_ranges structure
@ 2015-12-30 11:20 ` Julia Lawall
0 siblings, 0 replies; 6+ messages in thread
From: Julia Lawall @ 2015-12-30 11:20 UTC (permalink / raw)
To: Stanislaw Gruszka
Cc: kernel-janitors, Kalle Valo, linux-wireless, netdev, linux-kernel
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>
---
drivers/net/wireless/intel/iwlegacy/4965-mac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/intel/iwlegacy/4965-mac.c b/drivers/net/wireless/intel/iwlegacy/4965-mac.c
index 6656215..fd38aa0 100644
--- a/drivers/net/wireless/intel/iwlegacy/4965-mac.c
+++ b/drivers/net/wireless/intel/iwlegacy/4965-mac.c
@@ -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 */
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [PATCH] iwlegacy: 4965-mac: constify il_sensitivity_ranges structure
@ 2015-12-30 11:20 ` Julia Lawall
0 siblings, 0 replies; 6+ messages in thread
From: Julia Lawall @ 2015-12-30 11:20 UTC (permalink / raw)
To: Stanislaw Gruszka
Cc: kernel-janitors, Kalle Valo, linux-wireless, netdev, linux-kernel
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>
---
drivers/net/wireless/intel/iwlegacy/4965-mac.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/wireless/intel/iwlegacy/4965-mac.c b/drivers/net/wireless/intel/iwlegacy/4965-mac.c
index 6656215..fd38aa0 100644
--- a/drivers/net/wireless/intel/iwlegacy/4965-mac.c
+++ b/drivers/net/wireless/intel/iwlegacy/4965-mac.c
@@ -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 */
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] iwlegacy: 4965-mac: constify il_sensitivity_ranges structure
2015-12-30 11:20 ` Julia Lawall
@ 2016-01-04 9:37 ` Stanislaw Gruszka
-1 siblings, 0 replies; 6+ messages in thread
From: Stanislaw Gruszka @ 2016-01-04 9:37 UTC (permalink / raw)
To: Julia Lawall
Cc: kernel-janitors, Kalle Valo, linux-wireless, netdev, linux-kernel
On Wed, Dec 30, 2015 at 12:20:49PM +0100, Julia Lawall wrote:
> 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>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] iwlegacy: 4965-mac: constify il_sensitivity_ranges structure
@ 2016-01-04 9:37 ` Stanislaw Gruszka
0 siblings, 0 replies; 6+ messages in thread
From: Stanislaw Gruszka @ 2016-01-04 9:37 UTC (permalink / raw)
To: Julia Lawall
Cc: kernel-janitors, Kalle Valo, linux-wireless, netdev, linux-kernel
On Wed, Dec 30, 2015 at 12:20:49PM +0100, Julia Lawall wrote:
> 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>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: iwlegacy: 4965-mac: constify il_sensitivity_ranges structure
2015-12-30 11:20 ` Julia Lawall
@ 2016-01-07 9:10 ` Kalle Valo
-1 siblings, 0 replies; 6+ messages in thread
From: Kalle Valo @ 2016-01-07 9:10 UTC (permalink / raw)
To: Julia Lawall
Cc: Stanislaw Gruszka, kernel-janitors, linux-wireless, netdev, linux-kernel
> 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>
Thanks, applied to wireless-drivers-next.git.
Kalle Valo
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: iwlegacy: 4965-mac: constify il_sensitivity_ranges structure
@ 2016-01-07 9:10 ` Kalle Valo
0 siblings, 0 replies; 6+ messages in thread
From: Kalle Valo @ 2016-01-07 9:10 UTC (permalink / raw)
To: Julia Lawall
Cc: Stanislaw Gruszka, kernel-janitors, linux-wireless, netdev, linux-kernel
> 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>
Thanks, applied to wireless-drivers-next.git.
Kalle Valo
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2016-01-07 9:10 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-30 11:20 [PATCH] iwlegacy: 4965-mac: constify il_sensitivity_ranges structure Julia Lawall
2015-12-30 11:20 ` Julia Lawall
2016-01-04 9:37 ` Stanislaw Gruszka
2016-01-04 9:37 ` Stanislaw Gruszka
2016-01-07 9:10 ` Kalle Valo
2016-01-07 9:10 ` Kalle Valo
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.