diff options
author | Julia Lawall <Julia.Lawall@lip6.fr> | 2016-05-01 22:57:44 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2016-05-11 21:41:55 +0300 |
commit | 1bfcfdcca142f6468c665016b2b58c3012196af0 (patch) | |
tree | 47c4220de0fa533068606ea13aedaffe10cb8c31 /drivers/net/wireless/realtek/rtlwifi/wifi.h | |
parent | 6fe813e3d5618a1fdc77497f8d74938e975b63fa (diff) | |
download | linux-1bfcfdcca142f6468c665016b2b58c3012196af0.tar.xz |
rtlwifi: rtl818x: constify rtl_intf_ops structures
The rtl_intf_ops structures are never modified, so declare them as const.
Done with the help of Coccinelle.
Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/realtek/rtlwifi/wifi.h')
-rw-r--r-- | drivers/net/wireless/realtek/rtlwifi/wifi.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/realtek/rtlwifi/wifi.h b/drivers/net/wireless/realtek/rtlwifi/wifi.h index 11d9c2307e2f..4e0ab4d42aa6 100644 --- a/drivers/net/wireless/realtek/rtlwifi/wifi.h +++ b/drivers/net/wireless/realtek/rtlwifi/wifi.h @@ -2593,7 +2593,7 @@ struct rtl_priv { *intf_ops : for diff interrface usb/pcie */ struct rtl_hal_cfg *cfg; - struct rtl_intf_ops *intf_ops; + const struct rtl_intf_ops *intf_ops; /*this var will be set by set_bit, and was used to indicate status of |