[PATCH] ath10k: make ath10k_hw_ce_regs const

2017-09-13 Thread Bhumika Goyal
Make them const as they are not modified in the file referencing them. They are only stored in the const field 'hw_ce_reg' of an ath10k structure. Also, make the declarations in the header const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/net/wireless/ath/ath10k/hw

[PATCH] wireless: ipw2x00: make iw_handler_def const

2017-08-23 Thread Bhumika Goyal
Make these const as they are only stored in the const field of a net_device structure. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/net/wireless/intel/ipw2x00/ipw2100.c | 4 ++-- drivers/net/wireless/intel/ipw2x00/ipw2200.c | 2 +- 2 files changed, 3 insertions(+), 3 del

[PATCH v2] rtlwifi: constify rate_control_ops structure

2017-08-06 Thread Bhumika Goyal
rate_control_ops structure is only passed as an argument to the function ieee80211_rate_control_{register/unregister}. This argument is of type const, so declare the structure as const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- Changes in v2: * Change subject line. drive

[PATCH] ath9k: make ath_ps_ops structures as const

2017-08-03 Thread Bhumika Goyal
ath_ps_ops structures are only stored as a reference in the ps_ops field of a ath_common structure. This field is of type const, so make the structures as const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/net/wireless/ath/ath9k/htc_drv_init.c | 2 +- drivers/net/wirele

[PATCH 2/2] qlcnic: add const to bin_attribute structure

2017-08-02 Thread Bhumika Goyal
Add const to bin_attribute structure as it is only passed to the functions sysfs_{remove/create}_bin_file. The corresponding arguments are of type const, so declare the structure to be const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/net/ethernet/qlogic/qlcnic/qlcnic_s

[PATCH 1/2] wlcore: add const to bin_attribute structure

2017-08-02 Thread Bhumika Goyal
Add const to bin_attribute structure as it is only passed to the functions sysfs_{remove/create}_bin_file. The corresponding arguments are of type const, so declare the structure to be const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/net/wireless/ti/wlcore/sysfs.c | 2

[PATCH] cw1200: add const to hwbus_ops structures

2017-06-23 Thread Bhumika Goyal
Declare hwbus_ops structures as const as they are only passed as an argument to the function cw1200_core_probe. This argument is of type const. So, make these structures const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/net/wireless/st/cw1200/cw1200_sdio.c | 2 +- drive

[PATCH] ath10k: add const to thermal_cooling_device_ops structure

2017-06-21 Thread Bhumika Goyal
Declare thermal_cooling_device_ops structure as const as it is only passed as an argument to the function thermal_cooling_device_register and this argument is of type const. So, declare the structure as const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/net/wireless/ath/

[PATCH] iwlwifi: mvm: add const to thermal_cooling_device_ops structure

2017-06-21 Thread Bhumika Goyal
Declare thermal_cooling_device_ops structure as const as it is only passed as an argument to the function thermal_cooling_device_register and this argument is of type const. So, declare the structure as const. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/net/wireless

[PATCH] net: wireless: marvell: libertas: constify cfg80211_ops structures

2016-12-17 Thread Bhumika Goyal
1954 16 231955a9b wireless/marvell/libertas/cfg.o File size after: textdata bss dec hex filename 220411154 16 232115aab wireless/marvell/libertas/cfg.o Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/net/wireless/marvell/li

[PATCH] net: wireless: ath: wil6210: constify cfg80211_ops structures

2016-12-17 Thread Bhumika Goyal
6632 0 2476560bd wireless/ath/wil6210/cfg80211.o File size after: textdata bss dec hex filename 189335832 0 2476560bd wireless/ath/wil6210/cfg80211.o Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/net/wireless/ath/wil6210/cf

Re: [PATCH] net: wireless: realtek: constify rate_control_ops structures

2016-12-02 Thread Bhumika Goyal
On Sat, Dec 3, 2016 at 2:09 AM, Larry Finger <larry.fin...@lwfinger.net> wrote: > On 12/02/2016 03:50 AM, Bhumika Goyal wrote: >> >> The structures rate_control_ops are only passed as an argument to the >> functions ieee80211_rate_control_{register/unregister}. This a

[PATCH] net: wireless: realtek: constify rate_control_ops structures

2016-12-02 Thread Bhumika Goyal
wireless/realtek/rtlwifi/rc.o File size after: textdata bss dec hex filename 2095 0 02095 wireless/realtek/rtlwifi/rc.o Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/net/wireless/realtek/rtlwifi/rc.c | 2 +- 1 file changed, 1 ins

[PATCH] wireless: ath: ath9k: constify ath_bus_ops structure

2016-11-27 Thread Bhumika Goyal
1359 176 01535 5ff ath/ath9k/ahb.o Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/net/wireless/ath/ath9k/ahb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath9k/ahb.c b/drivers/net/wireless/ath/ath9k/ahb.c

[PATCH] Staging: rtl8723au: Remove function rtw_enqueue_{recvbuf23a/recvbuf23a_to_head}

2016-03-26 Thread Bhumika Goyal
The functions rtw_enqueue_recvbuf23a and rtw_enqueue_recvbuf23a_to_head are never used anywhere in the kernel. So, remove their definition and prototype. Grepped to find occurences. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/staging/rtl8723au/core/rtw_recv.c

[PATCH] Staging: rtl8723au: Remove unused functions

2016-03-26 Thread Bhumika Goyal
The functions rtw_get_oper_bw23a and rtw_get_oper_ch23aoffset are never used anywhere in the kernel. So, remove their definition and prototype. Grepped to find occurences. Signed-off-by: Bhumika Goyal <bhumi...@gmail.com> --- drivers/staging/rtl8723au/core/rtw_wlan_util.c