Commit 5e4e2ef7 authored by Shiva Kerdel's avatar Shiva Kerdel Committed by Greg Kroah-Hartman

Staging: ks7010: ks_hostif.*: Use preferred 'u32' kernel type over 'uint32_t'

Fix prefer kernel type 'u32' over 'uint32_t' checks.
Signed-off-by: default avatarShiva Kerdel <shiva@exdev.nl>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 81952f38
...@@ -507,8 +507,8 @@ static ...@@ -507,8 +507,8 @@ static
void hostif_mib_get_confirm(struct ks_wlan_private *priv) void hostif_mib_get_confirm(struct ks_wlan_private *priv)
{ {
struct net_device *dev = priv->net_dev; struct net_device *dev = priv->net_dev;
uint32_t mib_status; u32 mib_status;
uint32_t mib_attribute; u32 mib_attribute;
u16 mib_val_size; u16 mib_val_size;
u16 mib_val_type; u16 mib_val_type;
...@@ -587,8 +587,8 @@ void hostif_mib_get_confirm(struct ks_wlan_private *priv) ...@@ -587,8 +587,8 @@ void hostif_mib_get_confirm(struct ks_wlan_private *priv)
static static
void hostif_mib_set_confirm(struct ks_wlan_private *priv) void hostif_mib_set_confirm(struct ks_wlan_private *priv)
{ {
uint32_t mib_status; /* +04 MIB Status */ u32 mib_status; /* +04 MIB Status */
uint32_t mib_attribute; /* +08 MIB attribute */ u32 mib_attribute; /* +08 MIB attribute */
DPRINTK(3, "\n"); DPRINTK(3, "\n");
...@@ -1864,7 +1864,7 @@ void hostif_receive(struct ks_wlan_private *priv, unsigned char *p, ...@@ -1864,7 +1864,7 @@ void hostif_receive(struct ks_wlan_private *priv, unsigned char *p,
static static
void hostif_sme_set_wep(struct ks_wlan_private *priv, int type) void hostif_sme_set_wep(struct ks_wlan_private *priv, int type)
{ {
uint32_t val; u32 val;
switch (type) { switch (type) {
case SME_WEP_INDEX_REQUEST: case SME_WEP_INDEX_REQUEST:
...@@ -1918,7 +1918,7 @@ struct wpa_suite_t { ...@@ -1918,7 +1918,7 @@ struct wpa_suite_t {
} __packed; } __packed;
struct rsn_mode_t { struct rsn_mode_t {
uint32_t rsn_mode; u32 rsn_mode;
u16 rsn_capability; u16 rsn_capability;
} __packed; } __packed;
...@@ -1927,7 +1927,7 @@ void hostif_sme_set_rsn(struct ks_wlan_private *priv, int type) ...@@ -1927,7 +1927,7 @@ void hostif_sme_set_rsn(struct ks_wlan_private *priv, int type)
{ {
struct wpa_suite_t wpa_suite; struct wpa_suite_t wpa_suite;
struct rsn_mode_t rsn_mode; struct rsn_mode_t rsn_mode;
uint32_t val; u32 val;
memset(&wpa_suite, 0, sizeof(wpa_suite)); memset(&wpa_suite, 0, sizeof(wpa_suite));
...@@ -2323,7 +2323,7 @@ void hostif_sme_sleep_set(struct ks_wlan_private *priv) ...@@ -2323,7 +2323,7 @@ void hostif_sme_sleep_set(struct ks_wlan_private *priv)
static static
void hostif_sme_set_key(struct ks_wlan_private *priv, int type) void hostif_sme_set_key(struct ks_wlan_private *priv, int type)
{ {
uint32_t val; u32 val;
switch (type) { switch (type) {
case SME_SET_FLAG: case SME_SET_FLAG:
...@@ -2413,7 +2413,7 @@ void hostif_sme_set_pmksa(struct ks_wlan_private *priv) ...@@ -2413,7 +2413,7 @@ void hostif_sme_set_pmksa(struct ks_wlan_private *priv)
static static
void hostif_sme_execute(struct ks_wlan_private *priv, int event) void hostif_sme_execute(struct ks_wlan_private *priv, int event)
{ {
uint32_t val; u32 val;
DPRINTK(3, "event=%d\n", event); DPRINTK(3, "event=%d\n", event);
switch (event) { switch (event) {
......
...@@ -143,7 +143,7 @@ struct channel_list_t { ...@@ -143,7 +143,7 @@ struct channel_list_t {
struct hostif_mib_get_request_t { struct hostif_mib_get_request_t {
struct hostif_hdr header; struct hostif_hdr header;
uint32_t mib_attribute; u32 mib_attribute;
} __packed; } __packed;
struct hostif_mib_value_t { struct hostif_mib_value_t {
...@@ -159,36 +159,36 @@ struct hostif_mib_value_t { ...@@ -159,36 +159,36 @@ struct hostif_mib_value_t {
struct hostif_mib_get_confirm_t { struct hostif_mib_get_confirm_t {
struct hostif_hdr header; struct hostif_hdr header;
uint32_t mib_status; u32 mib_status;
#define MIB_SUCCESS 0 #define MIB_SUCCESS 0
#define MIB_INVALID 1 #define MIB_INVALID 1
#define MIB_READ_ONLY 2 #define MIB_READ_ONLY 2
#define MIB_WRITE_ONLY 3 #define MIB_WRITE_ONLY 3
uint32_t mib_attribute; u32 mib_attribute;
struct hostif_mib_value_t mib_value; struct hostif_mib_value_t mib_value;
} __packed; } __packed;
struct hostif_mib_set_request_t { struct hostif_mib_set_request_t {
struct hostif_hdr header; struct hostif_hdr header;
uint32_t mib_attribute; u32 mib_attribute;
struct hostif_mib_value_t mib_value; struct hostif_mib_value_t mib_value;
} __packed; } __packed;
struct hostif_mib_set_confirm_t { struct hostif_mib_set_confirm_t {
struct hostif_hdr header; struct hostif_hdr header;
uint32_t mib_status; u32 mib_status;
uint32_t mib_attribute; u32 mib_attribute;
} __packed; } __packed;
struct hostif_power_mngmt_request_t { struct hostif_power_mngmt_request_t {
struct hostif_hdr header; struct hostif_hdr header;
uint32_t mode; u32 mode;
#define POWER_ACTIVE 1 #define POWER_ACTIVE 1
#define POWER_SAVE 2 #define POWER_SAVE 2
uint32_t wake_up; u32 wake_up;
#define SLEEP_FALSE 0 #define SLEEP_FALSE 0
#define SLEEP_TRUE 1 /* not used */ #define SLEEP_TRUE 1 /* not used */
uint32_t receiveDTIMs; u32 receiveDTIMs;
#define DTIM_FALSE 0 #define DTIM_FALSE 0
#define DTIM_TRUE 1 #define DTIM_TRUE 1
} __packed; } __packed;
...@@ -480,8 +480,8 @@ struct hostif_bss_scan_request_t { ...@@ -480,8 +480,8 @@ struct hostif_bss_scan_request_t {
#define ACTIVE_SCAN 0 #define ACTIVE_SCAN 0
#define PASSIVE_SCAN 1 #define PASSIVE_SCAN 1
u8 pad[3]; u8 pad[3];
uint32_t ch_time_min; u32 ch_time_min;
uint32_t ch_time_max; u32 ch_time_max;
struct channel_list_t channel_list; struct channel_list_t channel_list;
struct ssid_t ssid; struct ssid_t ssid;
} __packed; } __packed;
...@@ -506,10 +506,10 @@ struct hostif_phy_information_confirm_t { ...@@ -506,10 +506,10 @@ struct hostif_phy_information_confirm_t {
u8 sq; u8 sq;
u8 noise; u8 noise;
u8 link_speed; u8 link_speed;
uint32_t tx_frame; u32 tx_frame;
uint32_t rx_frame; u32 rx_frame;
uint32_t tx_error; u32 tx_error;
uint32_t rx_error; u32 rx_error;
} __packed; } __packed;
/* sleep mode */ /* sleep mode */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment