staging: wfx: use kernel types instead of c99 ones
authorJérôme Pouiller <jerome.pouiller@silabs.com>
Tue, 5 May 2020 12:37:57 +0000 (14:37 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 May 2020 11:26:43 +0000 (13:26 +0200)
The kernel coding style promotes the use of kernel types (u8, u16, u32,
etc...) instead of the C99 ones.

Signed-off-by: Jérôme Pouiller <jerome.pouiller@silabs.com>
Link: https://lore.kernel.org/r/20200505123757.39506-16-Jerome.Pouiller@silabs.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wfx/hif_tx.c
drivers/staging/wfx/hif_tx_mib.c
drivers/staging/wfx/hif_tx_mib.h
drivers/staging/wfx/main.c
drivers/staging/wfx/main.h

index b083fca..58013c0 100644 (file)
@@ -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;
index 6fdde5a..65381b2 100644 (file)
@@ -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);
index bce35eb..86683de 100644 (file)
@@ -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,
index 18c96b8..25d70eb 100644 (file)
@@ -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) {
index a0f37c8..f832ce4 100644 (file)
@@ -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