mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
staging: wilc1000: change data type of wid argument in wilc_wlan_cfg_set
This patch changes data type of wid argument in wilc_wlan_cfg_set from u32 to u16. It is better to change data type of wid because wid has one of enum WID_T that is data type of u16. And, there is no need to use u16 type casting when calling wilc_wlan_cfg_set_wid function. Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5d145b1ad4
commit
70011f5f2c
@ -1197,7 +1197,7 @@ static int wilc_wlan_cfg_commit(struct wilc_vif *vif, int type,
|
||||
return 0;
|
||||
}
|
||||
|
||||
int wilc_wlan_cfg_set(struct wilc_vif *vif, int start, u32 wid, u8 *buffer,
|
||||
int wilc_wlan_cfg_set(struct wilc_vif *vif, int start, u16 wid, u8 *buffer,
|
||||
u32 buffer_size, int commit, u32 drv_handler)
|
||||
{
|
||||
u32 offset;
|
||||
@ -1212,7 +1212,7 @@ int wilc_wlan_cfg_set(struct wilc_vif *vif, int start, u32 wid, u8 *buffer,
|
||||
|
||||
offset = wilc->cfg_frame_offset;
|
||||
ret_size = wilc_wlan_cfg_set_wid(wilc->cfg_frame.frame, offset,
|
||||
(u16)wid, buffer, buffer_size);
|
||||
wid, buffer, buffer_size);
|
||||
offset += ret_size;
|
||||
wilc->cfg_frame_offset = offset;
|
||||
|
||||
|
@ -284,7 +284,7 @@ int wilc_wlan_txq_add_net_pkt(struct net_device *dev, void *priv, u8 *buffer,
|
||||
int wilc_wlan_handle_txq(struct net_device *dev, u32 *txq_count);
|
||||
void wilc_handle_isr(struct wilc *wilc);
|
||||
void wilc_wlan_cleanup(struct net_device *dev);
|
||||
int wilc_wlan_cfg_set(struct wilc_vif *vif, int start, u32 wid, u8 *buffer,
|
||||
int wilc_wlan_cfg_set(struct wilc_vif *vif, int start, u16 wid, u8 *buffer,
|
||||
u32 buffer_size, int commit, u32 drv_handler);
|
||||
int wilc_wlan_cfg_get(struct wilc_vif *vif, int start, u32 wid, int commit,
|
||||
u32 drv_handler);
|
||||
|
Loading…
Reference in New Issue
Block a user