mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
staging: wfx: fix alignements of function prototypes
Some function prototypes were not correctly aligned and/or exceed 80 columns. In some other cases, the prototypes were written on more lines than necessary. Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com> Link: https://lore.kernel.org/r/20200505123757.39506-14-Jerome.Pouiller@silabs.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
525f469f7f
commit
b356aed9ec
@@ -106,8 +106,7 @@ static int wfx_tx_policy_release(struct tx_policy_cache *cache,
|
||||
}
|
||||
|
||||
static int wfx_tx_policy_get(struct wfx_vif *wvif,
|
||||
struct ieee80211_tx_rate *rates,
|
||||
bool *renew)
|
||||
struct ieee80211_tx_rate *rates, bool *renew)
|
||||
{
|
||||
int idx;
|
||||
struct tx_policy_cache *cache = &wvif->tx_policy_cache;
|
||||
|
||||
@@ -23,8 +23,8 @@ void wfx_init_hif_cmd(struct wfx_hif_cmd *hif_cmd)
|
||||
mutex_init(&hif_cmd->key_renew_lock);
|
||||
}
|
||||
|
||||
static void wfx_fill_header(struct hif_msg *hif, int if_id, unsigned int cmd,
|
||||
size_t size)
|
||||
static void wfx_fill_header(struct hif_msg *hif, int if_id,
|
||||
unsigned int cmd, size_t size)
|
||||
{
|
||||
if (if_id == -1)
|
||||
if_id = 2;
|
||||
@@ -47,8 +47,8 @@ static void *wfx_alloc_hif(size_t body_len, struct hif_msg **hif)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int wfx_cmd_send(struct wfx_dev *wdev, struct hif_msg *request, void *reply,
|
||||
size_t reply_len, bool async)
|
||||
int wfx_cmd_send(struct wfx_dev *wdev, struct hif_msg *request,
|
||||
void *reply, size_t reply_len, bool async)
|
||||
{
|
||||
const char *mib_name = "";
|
||||
const char *mib_sep = "";
|
||||
@@ -176,8 +176,8 @@ int hif_reset(struct wfx_vif *wvif, bool reset_stat)
|
||||
return ret;
|
||||
}
|
||||
|
||||
int hif_read_mib(struct wfx_dev *wdev, int vif_id, u16 mib_id, void *val,
|
||||
size_t val_len)
|
||||
int hif_read_mib(struct wfx_dev *wdev, int vif_id, u16 mib_id,
|
||||
void *val, size_t val_len)
|
||||
{
|
||||
int ret;
|
||||
struct hif_msg *hif;
|
||||
@@ -207,8 +207,8 @@ int hif_read_mib(struct wfx_dev *wdev, int vif_id, u16 mib_id, void *val,
|
||||
return ret;
|
||||
}
|
||||
|
||||
int hif_write_mib(struct wfx_dev *wdev, int vif_id, u16 mib_id, void *val,
|
||||
size_t val_len)
|
||||
int hif_write_mib(struct wfx_dev *wdev, int vif_id, u16 mib_id,
|
||||
void *val, size_t val_len)
|
||||
{
|
||||
int ret;
|
||||
struct hif_msg *hif;
|
||||
@@ -494,8 +494,8 @@ int hif_update_ie_beacon(struct wfx_vif *wvif, const u8 *ies, size_t ies_len)
|
||||
return ret;
|
||||
}
|
||||
|
||||
int hif_sl_send_pub_keys(struct wfx_dev *wdev, const uint8_t *pubkey,
|
||||
const uint8_t *pubkey_hmac)
|
||||
int hif_sl_send_pub_keys(struct wfx_dev *wdev,
|
||||
const uint8_t *pubkey, const uint8_t *pubkey_hmac)
|
||||
{
|
||||
int ret;
|
||||
struct hif_msg *hif;
|
||||
@@ -529,8 +529,8 @@ int hif_sl_config(struct wfx_dev *wdev, const unsigned long *bitmap)
|
||||
return ret;
|
||||
}
|
||||
|
||||
int hif_sl_set_mac_key(struct wfx_dev *wdev, const u8 *slk_key,
|
||||
int destination)
|
||||
int hif_sl_set_mac_key(struct wfx_dev *wdev,
|
||||
const uint8_t *slk_key, int destination)
|
||||
{
|
||||
int ret;
|
||||
struct hif_msg *hif;
|
||||
|
||||
@@ -57,8 +57,8 @@ int hif_start(struct wfx_vif *wvif, const struct ieee80211_bss_conf *conf,
|
||||
int hif_beacon_transmit(struct wfx_vif *wvif, bool enable);
|
||||
int hif_map_link(struct wfx_vif *wvif, u8 *mac_addr, int flags, int sta_id);
|
||||
int hif_update_ie_beacon(struct wfx_vif *wvif, const u8 *ies, size_t ies_len);
|
||||
int hif_sl_set_mac_key(struct wfx_dev *wdev, const u8 *slk_key,
|
||||
int destination);
|
||||
int hif_sl_set_mac_key(struct wfx_dev *wdev,
|
||||
const u8 *slk_key, int destination);
|
||||
int hif_sl_config(struct wfx_dev *wdev, const unsigned long *bitmap);
|
||||
int hif_sl_send_pub_keys(struct wfx_dev *wdev,
|
||||
const u8 *pubkey, const u8 *pubkey_hmac);
|
||||
|
||||
@@ -106,8 +106,8 @@ err:
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int indirect_read(struct wfx_dev *wdev, int reg, u32 addr, void *buf,
|
||||
size_t len)
|
||||
static int indirect_read(struct wfx_dev *wdev, int reg, u32 addr,
|
||||
void *buf, size_t len)
|
||||
{
|
||||
int ret;
|
||||
int i;
|
||||
@@ -195,8 +195,8 @@ static int indirect_write_locked(struct wfx_dev *wdev, int reg, u32 addr,
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int indirect_read32_locked(struct wfx_dev *wdev, int reg, u32 addr,
|
||||
u32 *val)
|
||||
static int indirect_read32_locked(struct wfx_dev *wdev, int reg,
|
||||
u32 addr, u32 *val)
|
||||
{
|
||||
int ret;
|
||||
__le32 *tmp = kmalloc(sizeof(u32), GFP_KERNEL);
|
||||
@@ -212,8 +212,8 @@ static int indirect_read32_locked(struct wfx_dev *wdev, int reg, u32 addr,
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int indirect_write32_locked(struct wfx_dev *wdev, int reg, u32 addr,
|
||||
u32 val)
|
||||
static int indirect_write32_locked(struct wfx_dev *wdev, int reg,
|
||||
u32 addr, u32 val)
|
||||
{
|
||||
int ret;
|
||||
__le32 *tmp = kmalloc(sizeof(u32), GFP_KERNEL);
|
||||
|
||||
@@ -170,8 +170,8 @@ bool wfx_api_older_than(struct wfx_dev *wdev, int major, int minor)
|
||||
return false;
|
||||
}
|
||||
|
||||
struct gpio_desc *wfx_get_gpio(struct device *dev, int override,
|
||||
const char *label)
|
||||
struct gpio_desc *wfx_get_gpio(struct device *dev,
|
||||
int override, const char *label)
|
||||
{
|
||||
struct gpio_desc *ret;
|
||||
char label_buf[256];
|
||||
|
||||
@@ -139,10 +139,8 @@ u64 wfx_prepare_multicast(struct ieee80211_hw *hw,
|
||||
return 0;
|
||||
}
|
||||
|
||||
void wfx_configure_filter(struct ieee80211_hw *hw,
|
||||
unsigned int changed_flags,
|
||||
unsigned int *total_flags,
|
||||
u64 unused)
|
||||
void wfx_configure_filter(struct ieee80211_hw *hw, unsigned int changed_flags,
|
||||
unsigned int *total_flags, u64 unused)
|
||||
{
|
||||
struct wfx_vif *wvif = NULL;
|
||||
struct wfx_dev *wdev = hw->priv;
|
||||
@@ -532,10 +530,8 @@ static void wfx_enable_beacon(struct wfx_vif *wvif, bool enable)
|
||||
hif_beacon_transmit(wvif, enable);
|
||||
}
|
||||
|
||||
void wfx_bss_info_changed(struct ieee80211_hw *hw,
|
||||
struct ieee80211_vif *vif,
|
||||
struct ieee80211_bss_conf *info,
|
||||
u32 changed)
|
||||
void wfx_bss_info_changed(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
|
||||
struct ieee80211_bss_conf *info, u32 changed)
|
||||
{
|
||||
struct wfx_dev *wdev = hw->priv;
|
||||
struct wfx_vif *wvif = (struct wfx_vif *) vif->drv_priv;
|
||||
@@ -800,8 +796,7 @@ int wfx_add_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif)
|
||||
return ret;
|
||||
}
|
||||
|
||||
void wfx_remove_interface(struct ieee80211_hw *hw,
|
||||
struct ieee80211_vif *vif)
|
||||
void wfx_remove_interface(struct ieee80211_hw *hw, struct ieee80211_vif *vif)
|
||||
{
|
||||
struct wfx_dev *wdev = hw->priv;
|
||||
struct wfx_vif *wvif = (struct wfx_vif *) vif->drv_priv;
|
||||
|
||||
Reference in New Issue
Block a user