Commit 1ff4388a authored by Jérôme Pouiller's avatar Jérôme Pouiller Committed by Greg Kroah-Hartman
Browse files

staging: wfx: use kernel types instead of c99 ones



The kernel coding style promotes the use of kernel types (u8, u16, u32,
etc...) instead of the C99 ones.

Signed-off-by: default avatarJérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200505123757.39506-16-Jerome.Pouiller@silabs.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent cae9b695
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -495,7 +495,7 @@ int hif_update_ie_beacon(struct wfx_vif *wvif, const u8 *ies, size_t ies_len)
}

int hif_sl_send_pub_keys(struct wfx_dev *wdev,
			 const uint8_t *pubkey, const uint8_t *pubkey_hmac)
			 const u8 *pubkey, const u8 *pubkey_hmac)
{
	int ret;
	struct hif_msg *hif;
@@ -529,8 +529,7 @@ 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 uint8_t *slk_key, int destination)
int hif_sl_set_mac_key(struct wfx_dev *wdev, const u8 *slk_key, int destination)
{
	int ret;
	struct hif_msg *hif;
+1 −1
Original line number Diff line number Diff line
@@ -215,7 +215,7 @@ int hif_set_association_mode(struct wfx_vif *wvif,
}

int hif_set_tx_rate_retry_policy(struct wfx_vif *wvif,
				 int policy_index, uint8_t *rates)
				 int policy_index, u8 *rates)
{
	struct hif_mib_set_tx_rate_retry_policy *arg;
	size_t size = struct_size(arg, tx_rate_retry_policy, 1);
+1 −1
Original line number Diff line number Diff line
@@ -36,7 +36,7 @@ int hif_set_block_ack_policy(struct wfx_vif *wvif,
int hif_set_association_mode(struct wfx_vif *wvif,
			     struct ieee80211_bss_conf *info);
int hif_set_tx_rate_retry_policy(struct wfx_vif *wvif,
				 int policy_index, uint8_t *rates);
				 int policy_index, u8 *rates);
int hif_set_mac_addr_condition(struct wfx_vif *wvif,
			       int idx, const u8 *mac_addr);
int hif_set_uc_mc_bc_condition(struct wfx_vif *wvif,
+2 −2
Original line number Diff line number Diff line
@@ -203,7 +203,7 @@ struct gpio_desc *wfx_get_gpio(struct device *dev,
}

/* NOTE: wfx_send_pds() destroy buf */
int wfx_send_pds(struct wfx_dev *wdev, unsigned char *buf, size_t len)
int wfx_send_pds(struct wfx_dev *wdev, u8 *buf, size_t len)
{
	int ret;
	int start, brace_level, i;
@@ -252,7 +252,7 @@ static int wfx_send_pdata_pds(struct wfx_dev *wdev)
{
	int ret = 0;
	const struct firmware *pds;
	unsigned char *tmp_buf;
	u8 *tmp_buf;

	ret = request_firmware(&pds, wdev->pdata.file_pds, wdev->dev);
	if (ret) {
+1 −1
Original line number Diff line number Diff line
@@ -41,6 +41,6 @@ void wfx_release(struct wfx_dev *wdev);
struct gpio_desc *wfx_get_gpio(struct device *dev, int override,
			       const char *label);
bool wfx_api_older_than(struct wfx_dev *wdev, int major, int minor);
int wfx_send_pds(struct wfx_dev *wdev, unsigned char *buf, size_t len);
int wfx_send_pds(struct wfx_dev *wdev, u8 *buf, size_t len);

#endif