]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
wireless: ipw2x00: make iw_handler_def const
authorBhumika Goyal <bhumirks@gmail.com>
Wed, 23 Aug 2017 12:36:42 +0000 (18:06 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 24 Aug 2017 09:58:17 +0000 (12:58 +0300)
Make these const as they are only stored in the const field of a
net_device structure.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intel/ipw2x00/ipw2100.c
drivers/net/wireless/intel/ipw2x00/ipw2200.c

index 77f3f92b3c8596b96a75ab29afacbc57fd8ca259..19c442cb93e4af2b50e72fe1c7b972cd0827c2f6 100644 (file)
@@ -340,7 +340,7 @@ static int ipw2100_ucode_download(struct ipw2100_priv *priv,
                                  struct ipw2100_fw *fw);
 static void ipw2100_wx_event_work(struct work_struct *work);
 static struct iw_statistics *ipw2100_wx_wireless_stats(struct net_device *dev);
-static struct iw_handler_def ipw2100_wx_handler_def;
+static const struct iw_handler_def ipw2100_wx_handler_def;
 
 static inline void read_register(struct net_device *dev, u32 reg, u32 * val)
 {
@@ -8273,7 +8273,7 @@ static struct iw_statistics *ipw2100_wx_wireless_stats(struct net_device *dev)
        return (struct iw_statistics *)NULL;
 }
 
-static struct iw_handler_def ipw2100_wx_handler_def = {
+static const struct iw_handler_def ipw2100_wx_handler_def = {
        .standard = ipw2100_wx_handlers,
        .num_standard = ARRAY_SIZE(ipw2100_wx_handlers),
        .num_private = ARRAY_SIZE(ipw2100_private_handler),
index c57c567add4d82b1c0dab0c3a111c97c113668f3..8da87496cb587f2ed92977649c6c31d12f1f32e8 100644 (file)
@@ -10009,7 +10009,7 @@ static iw_handler ipw_priv_handler[] = {
 #endif
 };
 
-static struct iw_handler_def ipw_wx_handler_def = {
+static const struct iw_handler_def ipw_wx_handler_def = {
        .standard = ipw_wx_handlers,
        .num_standard = ARRAY_SIZE(ipw_wx_handlers),
        .num_private = ARRAY_SIZE(ipw_priv_handler),