All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/23] staging: ks7010: some new cleanups
@ 2018-05-13 18:35 Sergio Paracuellos
  2018-05-13 18:35 ` [PATCH 01/23] staging: ks7010: remove not used definition WPA_CAPABILITY_PREAUTH Sergio Paracuellos
                   ` (22 more replies)
  0 siblings, 23 replies; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-13 18:35 UTC (permalink / raw)
  To: gregkh; +Cc: driverdev-devel, wsa

The following series makes new cleanups for this driver. Some not
used stuff has been deleted as well as some casts and other minor
changes with types have been introduced.

Sergio Paracuellos (23):
  staging: ks7010: remove not used definition WPA_CAPABILITY_PREAUTH
  staging: ks7010: remove no necessary blank line
  staging: ks7010: replace unsigned char type with u8
  staging: ks7010: change cast from uint16_t to u16
  staging: ks7010: change parameter type in ks_wlan_hw_rx function
  staging: ks7010: change uint8_t casts to u8 in ks_wlan_set_rate
  staging: ks7010: replace uint8_t with u8 in ks_wlan_set_tx_gain
  staging: ks7010: replace uint8_t with u8 in ks_wlan_set_rx_gain
  staging: ks7010: replace not standard uint type to unsigned int
  staging: ks7010: use u16 as type for casting in
    hostif_data_indication_wpa
  staging: ks7010: change some cast type from uint16_t to u16 in
    hostif_data_request
  staging: ks7010: change parameter type in hostif_mib_get_request
  staging: ks7010: avoid no needed cast in ks_wlan_cap
  staging: ks7010: use u16 as cast type in hostif_start_request
  staging: ks7010: replace casts to use type u16 in init_request
  staging: ks7010: use u16 as type for casting in
    hostif_ps_adhoc_set_request
  staging: ks7010: replace cast type in assignments in
    hostif_infrastructure_set_request
  staging: ks7010: replace cast type in assignment in
    hostif_adhoc_set_request
  staging: ks7010: replace cast types in assignments in
    hostif_phy_information_request
  staging: ks7010: replace uint* type into the u* ones in
    hostif_bss_scan_request
  staging: ks7010: change two parameter types in
    hostif_mic_failure_request
  staging: ks7010: use 'u16' for casts in assignments in
    hostif_sme_set_rsn
  staging: ks7010: replace cast type in assignment in
    hostif_sme_set_pmksa

 drivers/staging/ks7010/eap_packet.h  |  2 -
 drivers/staging/ks7010/ks7010_sdio.c | 13 +++----
 drivers/staging/ks7010/ks_hostif.c   | 72 ++++++++++++++++++------------------
 drivers/staging/ks7010/ks_wlan.h     |  2 +-
 drivers/staging/ks7010/ks_wlan_net.c | 12 +++---
 5 files changed, 48 insertions(+), 53 deletions(-)

-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply	[flat|nested] 31+ messages in thread

* [PATCH 01/23] staging: ks7010: remove not used definition WPA_CAPABILITY_PREAUTH
  2018-05-13 18:35 [PATCH 00/23] staging: ks7010: some new cleanups Sergio Paracuellos
@ 2018-05-13 18:35 ` Sergio Paracuellos
  2018-05-13 18:35 ` [PATCH 02/23] staging: ks7010: remove no necessary blank line Sergio Paracuellos
                   ` (21 subsequent siblings)
  22 siblings, 0 replies; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-13 18:35 UTC (permalink / raw)
  To: gregkh; +Cc: driverdev-devel, wsa

The WPA_CAPABILITY_PREAUTH definition is not being used at all so
just remove it.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/ks7010/eap_packet.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/staging/ks7010/eap_packet.h b/drivers/staging/ks7010/eap_packet.h
index ded85d9..1eee774 100644
--- a/drivers/staging/ks7010/eap_packet.h
+++ b/drivers/staging/ks7010/eap_packet.h
@@ -67,6 +67,4 @@ struct wpa_eapol_key {
 #define WPA_KEY_INFO_REQUEST BIT(11)
 #define WPA_KEY_INFO_ENCR_KEY_DATA BIT(12)	/* IEEE 802.11i/RSN only */
 
-#define WPA_CAPABILITY_PREAUTH BIT(0)
-
 #endif /* EAP_PACKET_H */
-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 02/23] staging: ks7010: remove no necessary blank line
  2018-05-13 18:35 [PATCH 00/23] staging: ks7010: some new cleanups Sergio Paracuellos
  2018-05-13 18:35 ` [PATCH 01/23] staging: ks7010: remove not used definition WPA_CAPABILITY_PREAUTH Sergio Paracuellos
@ 2018-05-13 18:35 ` Sergio Paracuellos
  2018-05-13 18:35 ` [PATCH 03/23] staging: ks7010: replace unsigned char type with u8 Sergio Paracuellos
                   ` (20 subsequent siblings)
  22 siblings, 0 replies; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-13 18:35 UTC (permalink / raw)
  To: gregkh; +Cc: driverdev-devel, wsa

There was two blank lines between definitions and statements
in ks7010_upload_firmware function. Remove one of them.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/ks7010/ks7010_sdio.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c
index 0b1e352..d236dfe 100644
--- a/drivers/staging/ks7010/ks7010_sdio.c
+++ b/drivers/staging/ks7010/ks7010_sdio.c
@@ -756,7 +756,6 @@ static int ks7010_upload_firmware(struct ks_sdio_card *card)
 	int ret;
 	const struct firmware *fw_entry = NULL;
 
-
 	sdio_claim_host(func);
 
 	/* Firmware running ? */
-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 03/23] staging: ks7010: replace unsigned char type with u8
  2018-05-13 18:35 [PATCH 00/23] staging: ks7010: some new cleanups Sergio Paracuellos
  2018-05-13 18:35 ` [PATCH 01/23] staging: ks7010: remove not used definition WPA_CAPABILITY_PREAUTH Sergio Paracuellos
  2018-05-13 18:35 ` [PATCH 02/23] staging: ks7010: remove no necessary blank line Sergio Paracuellos
@ 2018-05-13 18:35 ` Sergio Paracuellos
  2018-05-13 18:35 ` [PATCH 04/23] staging: ks7010: change cast from uint16_t to u16 Sergio Paracuellos
                   ` (19 subsequent siblings)
  22 siblings, 0 replies; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-13 18:35 UTC (permalink / raw)
  To: gregkh; +Cc: driverdev-devel, wsa

Variable 'byte' in ks7010_upload_firmware function is declared
as unsigned char and is only being used to read hardware
registers which are expected in sdio_read_byteb function as u8.
Change 'byte' variable type to u8 which is preferred.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/ks7010/ks7010_sdio.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c
index d236dfe..f56db07 100644
--- a/drivers/staging/ks7010/ks7010_sdio.c
+++ b/drivers/staging/ks7010/ks7010_sdio.c
@@ -752,7 +752,7 @@ static int ks7010_upload_firmware(struct ks_sdio_card *card)
 	struct ks_wlan_private *priv = card->priv;
 	struct sdio_func *func = ks7010_to_func(priv);
 	unsigned int n;
-	unsigned char byte = 0;
+	u8 byte = 0;
 	int ret;
 	const struct firmware *fw_entry = NULL;
 
-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 04/23] staging: ks7010: change cast from uint16_t to u16
  2018-05-13 18:35 [PATCH 00/23] staging: ks7010: some new cleanups Sergio Paracuellos
                   ` (2 preceding siblings ...)
  2018-05-13 18:35 ` [PATCH 03/23] staging: ks7010: replace unsigned char type with u8 Sergio Paracuellos
@ 2018-05-13 18:35 ` Sergio Paracuellos
  2018-05-15 13:41   ` Dan Carpenter
  2018-05-13 18:35 ` [PATCH 05/23] staging: ks7010: change parameter type in ks_wlan_hw_rx function Sergio Paracuellos
                   ` (18 subsequent siblings)
  22 siblings, 1 reply; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-13 18:35 UTC (permalink / raw)
  To: gregkh; +Cc: driverdev-devel, wsa

Header size and event fields of header are declared
as __le16 and being casted using uint16_t in cpu_to_le16.
Change cast to use preferred u16.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/ks7010/ks7010_sdio.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c
index f56db07..a51b5e8 100644
--- a/drivers/staging/ks7010/ks7010_sdio.c
+++ b/drivers/staging/ks7010/ks7010_sdio.c
@@ -1061,8 +1061,8 @@ static int send_stop_request(struct sdio_func *func)
 		return -ENOMEM;
 
 	size = sizeof(*pp) - sizeof(pp->header.size);
-	pp->header.size = cpu_to_le16((uint16_t)size);
-	pp->header.event = cpu_to_le16((uint16_t)HIF_STOP_REQ);
+	pp->header.size = cpu_to_le16((u16)size);
+	pp->header.event = cpu_to_le16((u16)HIF_STOP_REQ);
 
 	sdio_claim_host(func);
 	write_to_device(card->priv, (u8 *)pp, hif_align_size(sizeof(*pp)));
-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 05/23] staging: ks7010: change parameter type in ks_wlan_hw_rx function
  2018-05-13 18:35 [PATCH 00/23] staging: ks7010: some new cleanups Sergio Paracuellos
                   ` (3 preceding siblings ...)
  2018-05-13 18:35 ` [PATCH 04/23] staging: ks7010: change cast from uint16_t to u16 Sergio Paracuellos
@ 2018-05-13 18:35 ` Sergio Paracuellos
  2018-05-13 18:35 ` [PATCH 06/23] staging: ks7010: change uint8_t casts to u8 in ks_wlan_set_rate Sergio Paracuellos
                   ` (17 subsequent siblings)
  22 siblings, 0 replies; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-13 18:35 UTC (permalink / raw)
  To: gregkh; +Cc: driverdev-devel, wsa

The parameter 'size' in function ks_wlan_hw_rx is declared as
uint16_t and can be declared as size_t which makes more sense.
It is being passed to hif_align_size function which also expects
a size_t as parameter so just change its type. Also update two
casts in calls to this function.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/ks7010/ks7010_sdio.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c
index a51b5e8..e904740 100644
--- a/drivers/staging/ks7010/ks7010_sdio.c
+++ b/drivers/staging/ks7010/ks7010_sdio.c
@@ -420,7 +420,7 @@ static void rx_event_task(unsigned long dev)
 	}
 }
 
-static void ks_wlan_hw_rx(struct ks_wlan_private *priv, uint16_t size)
+static void ks_wlan_hw_rx(struct ks_wlan_private *priv, size_t size)
 {
 	int ret;
 	struct rx_device_buffer *rx_buffer;
@@ -526,7 +526,7 @@ static void ks7010_rw_function(struct work_struct *work)
 	}
 
 	if (byte & RSIZE_MASK) {	/* Read schedule */
-		ks_wlan_hw_rx(priv, (uint16_t)((byte & RSIZE_MASK) << 4));
+		ks_wlan_hw_rx(priv, (size_t)((byte & RSIZE_MASK) << 4));
 	}
 	if ((byte & WSTATUS_MASK))
 		tx_device_task(priv);
@@ -586,7 +586,7 @@ static void ks_sdio_interrupt(struct sdio_func *func)
 		}
 		rsize = byte & RSIZE_MASK;
 		if (rsize != 0)		/* Read schedule */
-			ks_wlan_hw_rx(priv, (uint16_t)(rsize << 4));
+			ks_wlan_hw_rx(priv, (size_t)(rsize << 4));
 
 		if (byte & WSTATUS_MASK) {
 			if (atomic_read(&priv->psstatus.status) == PS_SNOOZE) {
-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 06/23] staging: ks7010: change uint8_t casts to u8 in ks_wlan_set_rate
  2018-05-13 18:35 [PATCH 00/23] staging: ks7010: some new cleanups Sergio Paracuellos
                   ` (4 preceding siblings ...)
  2018-05-13 18:35 ` [PATCH 05/23] staging: ks7010: change parameter type in ks_wlan_hw_rx function Sergio Paracuellos
@ 2018-05-13 18:35 ` Sergio Paracuellos
  2018-05-15 13:51   ` Dan Carpenter
  2018-05-13 18:35 ` [PATCH 07/23] staging: ks7010: replace uint8_t with u8 in ks_wlan_set_tx_gain Sergio Paracuellos
                   ` (16 subsequent siblings)
  22 siblings, 1 reply; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-13 18:35 UTC (permalink / raw)
  To: gregkh; +Cc: driverdev-devel, wsa

There are some casts to uint8_t in ks_wlan_set_rate function to
assign values of the bitrate. Just change it to u8 which is the one
defined for the field 'body' of the struct which is in use.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/ks7010/ks_wlan_net.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/ks7010/ks_wlan_net.c b/drivers/staging/ks7010/ks_wlan_net.c
index 6d5ac62..1cd690a 100644
--- a/drivers/staging/ks7010/ks_wlan_net.c
+++ b/drivers/staging/ks7010/ks_wlan_net.c
@@ -406,12 +406,12 @@ static int ks_wlan_set_rate(struct net_device *dev,
 			case 11000000:
 			case 5500000:
 				priv->reg.rate_set.body[0] =
-				    (uint8_t)(vwrq->bitrate.value / 500000);
+				    (u8)(vwrq->bitrate.value / 500000);
 				break;
 			case 2000000:
 			case 1000000:
 				priv->reg.rate_set.body[0] =
-				    ((uint8_t)(vwrq->bitrate.value / 500000)) |
+				    ((u8)(vwrq->bitrate.value / 500000)) |
 				    BASIC_RATE;
 				break;
 			default:
@@ -466,7 +466,7 @@ static int ks_wlan_set_rate(struct net_device *dev,
 			case 18000000:
 			case 9000000:
 				priv->reg.rate_set.body[0] =
-				    (uint8_t)(vwrq->bitrate.value / 500000);
+				    (u8)(vwrq->bitrate.value / 500000);
 				break;
 			case 24000000:
 			case 12000000:
@@ -476,7 +476,7 @@ static int ks_wlan_set_rate(struct net_device *dev,
 			case 2000000:
 			case 1000000:
 				priv->reg.rate_set.body[0] =
-				    ((uint8_t)(vwrq->bitrate.value / 500000)) |
+				    ((u8)(vwrq->bitrate.value / 500000)) |
 				    BASIC_RATE;
 				break;
 			default:
-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 07/23] staging: ks7010: replace uint8_t with u8 in ks_wlan_set_tx_gain
  2018-05-13 18:35 [PATCH 00/23] staging: ks7010: some new cleanups Sergio Paracuellos
                   ` (5 preceding siblings ...)
  2018-05-13 18:35 ` [PATCH 06/23] staging: ks7010: change uint8_t casts to u8 in ks_wlan_set_rate Sergio Paracuellos
@ 2018-05-13 18:35 ` Sergio Paracuellos
  2018-05-13 18:35 ` [PATCH 08/23] staging: ks7010: replace uint8_t with u8 in ks_wlan_set_rx_gain Sergio Paracuellos
                   ` (15 subsequent siblings)
  22 siblings, 0 replies; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-13 18:35 UTC (permalink / raw)
  To: gregkh; +Cc: driverdev-devel, wsa

In function ks_wlan_set_tx_gain a cast to uint8_t is being used
to assign transmission gain. 'tx_gain' field is defined as u8 so
replace the cast to the correct type.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/ks7010/ks_wlan_net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/ks7010/ks_wlan_net.c b/drivers/staging/ks7010/ks_wlan_net.c
index 1cd690a..c85ea83 100644
--- a/drivers/staging/ks7010/ks_wlan_net.c
+++ b/drivers/staging/ks7010/ks_wlan_net.c
@@ -2123,7 +2123,7 @@ static int ks_wlan_set_tx_gain(struct net_device *dev,
 	if (*uwrq > 0xFF)
 		return -EINVAL;
 
-	priv->gain.tx_gain = (uint8_t)*uwrq;
+	priv->gain.tx_gain = (u8)*uwrq;
 	priv->gain.tx_mode = (priv->gain.tx_gain < 0xFF) ? 1 : 0;
 	hostif_sme_enqueue(priv, SME_SET_GAIN);
 	return 0;
-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 08/23] staging: ks7010: replace uint8_t with u8 in ks_wlan_set_rx_gain
  2018-05-13 18:35 [PATCH 00/23] staging: ks7010: some new cleanups Sergio Paracuellos
                   ` (6 preceding siblings ...)
  2018-05-13 18:35 ` [PATCH 07/23] staging: ks7010: replace uint8_t with u8 in ks_wlan_set_tx_gain Sergio Paracuellos
@ 2018-05-13 18:35 ` Sergio Paracuellos
  2018-05-13 18:35 ` [PATCH 09/23] staging: ks7010: replace not standard uint type to unsigned int Sergio Paracuellos
                   ` (14 subsequent siblings)
  22 siblings, 0 replies; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-13 18:35 UTC (permalink / raw)
  To: gregkh; +Cc: driverdev-devel, wsa

In function ks_wlan_set_rx_gain a cast to uint8_t is being used
to assign reception gain. 'rx_gain' field is defined as u8 so
replace the cast to the correct type

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/ks7010/ks_wlan_net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/ks7010/ks_wlan_net.c b/drivers/staging/ks7010/ks_wlan_net.c
index c85ea83..dc5459a 100644
--- a/drivers/staging/ks7010/ks_wlan_net.c
+++ b/drivers/staging/ks7010/ks_wlan_net.c
@@ -2155,7 +2155,7 @@ static int ks_wlan_set_rx_gain(struct net_device *dev,
 	if (*uwrq > 0xFF)
 		return -EINVAL;
 
-	priv->gain.rx_gain = (uint8_t)*uwrq;
+	priv->gain.rx_gain = (u8)*uwrq;
 	priv->gain.rx_mode = (priv->gain.rx_gain < 0xFF) ? 1 : 0;
 	hostif_sme_enqueue(priv, SME_SET_GAIN);
 	return 0;
-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 09/23] staging: ks7010: replace not standard uint type to unsigned int
  2018-05-13 18:35 [PATCH 00/23] staging: ks7010: some new cleanups Sergio Paracuellos
                   ` (7 preceding siblings ...)
  2018-05-13 18:35 ` [PATCH 08/23] staging: ks7010: replace uint8_t with u8 in ks_wlan_set_rx_gain Sergio Paracuellos
@ 2018-05-13 18:35 ` Sergio Paracuellos
  2018-05-13 18:35 ` [PATCH 10/23] staging: ks7010: use u16 as type for casting in hostif_data_indication_wpa Sergio Paracuellos
                   ` (13 subsequent siblings)
  22 siblings, 0 replies; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-13 18:35 UTC (permalink / raw)
  To: gregkh; +Cc: driverdev-devel, wsa

The field 'wakeup_count' in 'ks_wlan_private' struct is declared
as 'uint' which is not a standard type. Replace in favour of
'unsigned int' which it is.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/ks7010/ks_wlan.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/ks7010/ks_wlan.h b/drivers/staging/ks7010/ks_wlan.h
index 655f1e3..11dd263 100644
--- a/drivers/staging/ks7010/ks_wlan.h
+++ b/drivers/staging/ks7010/ks_wlan.h
@@ -513,7 +513,7 @@ struct ks_wlan_private {
 	unsigned long last_doze;
 	unsigned long last_wakeup;
 
-	uint wakeup_count;	/* for detect wakeup loop */
+	unsigned int wakeup_count;	/* for detect wakeup loop */
 };
 
 static inline void inc_txqhead(struct ks_wlan_private *priv)
-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 10/23] staging: ks7010: use u16 as type for casting in hostif_data_indication_wpa
  2018-05-13 18:35 [PATCH 00/23] staging: ks7010: some new cleanups Sergio Paracuellos
                   ` (8 preceding siblings ...)
  2018-05-13 18:35 ` [PATCH 09/23] staging: ks7010: replace not standard uint type to unsigned int Sergio Paracuellos
@ 2018-05-13 18:35 ` Sergio Paracuellos
  2018-05-13 18:35 ` [PATCH 11/23] staging: ks7010: change some cast type from uint16_t to u16 in hostif_data_request Sergio Paracuellos
                   ` (12 subsequent siblings)
  22 siblings, 0 replies; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-13 18:35 UTC (permalink / raw)
  To: gregkh; +Cc: driverdev-devel, wsa

Field 'counter' in mic_failure struct is being assigned casting
value using uint16_t. Replace with u16 which is the correct type
of the field and the preferred one.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/ks7010/ks_hostif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
index 7b6a385..9d3f7e3 100644
--- a/drivers/staging/ks7010/ks_hostif.c
+++ b/drivers/staging/ks7010/ks_hostif.c
@@ -323,7 +323,7 @@ int hostif_data_indication_wpa(struct ks_wlan_private *priv,
 			} else if (mic_failure->failure == 1) {
 				mic_failure->failure = 2;
 				mic_failure->counter =
-					(uint16_t)((now - mic_failure->last_failure_time) / HZ);
+					(u16)((now - mic_failure->last_failure_time) / HZ);
 				/*  range 1-60 */
 				if (!mic_failure->counter)
 					mic_failure->counter = 1;
-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 11/23] staging: ks7010: change some cast type from uint16_t to u16 in hostif_data_request
  2018-05-13 18:35 [PATCH 00/23] staging: ks7010: some new cleanups Sergio Paracuellos
                   ` (9 preceding siblings ...)
  2018-05-13 18:35 ` [PATCH 10/23] staging: ks7010: use u16 as type for casting in hostif_data_indication_wpa Sergio Paracuellos
@ 2018-05-13 18:35 ` Sergio Paracuellos
  2018-05-15 13:59   ` Dan Carpenter
  2018-05-13 18:35 ` [PATCH 12/23] staging: ks7010: change parameter type in hostif_mib_get_request Sergio Paracuellos
                   ` (11 subsequent siblings)
  22 siblings, 1 reply; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-13 18:35 UTC (permalink / raw)
  To: gregkh; +Cc: driverdev-devel, wsa

There are some castings inside the function hostif_data_request
which are being using with uint16_t type. Fields which have being
assigned are declared as u16. So update casts types to u16 in all
of them.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/ks7010/ks_hostif.c | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
index 9d3f7e3..ecdd134 100644
--- a/drivers/staging/ks7010/ks_hostif.c
+++ b/drivers/staging/ks7010/ks_hostif.c
@@ -1109,7 +1109,7 @@ int hostif_data_request(struct ks_wlan_private *priv, struct sk_buff *skb)
 		    priv->wpa.key[1].key_len == 0 &&
 		    priv->wpa.key[2].key_len == 0 &&
 		    priv->wpa.key[3].key_len == 0) {
-			pp->auth_type = cpu_to_le16((uint16_t)TYPE_AUTH);
+			pp->auth_type = cpu_to_le16((u16)TYPE_AUTH);
 		} else {
 			if (priv->wpa.pairwise_suite == IW_AUTH_CIPHER_TKIP) {
 				michael_mic_function(&michael_mic,
@@ -1121,26 +1121,26 @@ int hostif_data_request(struct ks_wlan_private *priv, struct sk_buff *skb)
 				skb_len += 8;
 				p += 8;
 				pp->auth_type =
-				    cpu_to_le16((uint16_t)TYPE_DATA);
+				    cpu_to_le16((u16)TYPE_DATA);
 
 			} else if (priv->wpa.pairwise_suite ==
 				   IW_AUTH_CIPHER_CCMP) {
 				pp->auth_type =
-				    cpu_to_le16((uint16_t)TYPE_DATA);
+				    cpu_to_le16((u16)TYPE_DATA);
 			}
 		}
 	} else {
 		if (eth_proto == ETH_P_PAE)
-			pp->auth_type = cpu_to_le16((uint16_t)TYPE_AUTH);
+			pp->auth_type = cpu_to_le16((u16)TYPE_AUTH);
 		else
-			pp->auth_type = cpu_to_le16((uint16_t)TYPE_DATA);
+			pp->auth_type = cpu_to_le16((u16)TYPE_DATA);
 	}
 
 	/* header value set */
 	pp->header.size =
-	    cpu_to_le16((uint16_t)
+	    cpu_to_le16((u16)
 			(sizeof(*pp) - sizeof(pp->header.size) + skb_len));
-	pp->header.event = cpu_to_le16((uint16_t)HIF_DATA_REQ);
+	pp->header.event = cpu_to_le16((u16)HIF_DATA_REQ);
 
 	/* tx request */
 	result = ks_wlan_hw_tx(priv, pp, hif_align_size(sizeof(*pp) + skb_len),
-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 12/23] staging: ks7010: change parameter type in hostif_mib_get_request
  2018-05-13 18:35 [PATCH 00/23] staging: ks7010: some new cleanups Sergio Paracuellos
                   ` (10 preceding siblings ...)
  2018-05-13 18:35 ` [PATCH 11/23] staging: ks7010: change some cast type from uint16_t to u16 in hostif_data_request Sergio Paracuellos
@ 2018-05-13 18:35 ` Sergio Paracuellos
  2018-05-13 18:35 ` [PATCH 13/23] staging: ks7010: avoid no needed cast in ks_wlan_cap Sergio Paracuellos
                   ` (10 subsequent siblings)
  22 siblings, 0 replies; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-13 18:35 UTC (permalink / raw)
  To: gregkh; +Cc: driverdev-devel, wsa

Second parameter 'mib_attribute' in function hostif_mib_get_request
is declared as unsigned long and inside the function a cast to uint32_t
is being used. Just pass a u32 instead and avoid the casting.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/ks7010/ks_hostif.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
index ecdd134..9724a48 100644
--- a/drivers/staging/ks7010/ks_hostif.c
+++ b/drivers/staging/ks7010/ks_hostif.c
@@ -1182,9 +1182,8 @@ static inline void send_request_to_device(struct ks_wlan_private *priv,
 	ks_wlan_hw_tx(priv, data, size, NULL, NULL);
 }
 
-static
-void hostif_mib_get_request(struct ks_wlan_private *priv,
-			    unsigned long mib_attribute)
+static void hostif_mib_get_request(struct ks_wlan_private *priv,
+				   u32 mib_attribute)
 {
 	struct hostif_mib_get_request *pp;
 
@@ -1192,7 +1191,7 @@ void hostif_mib_get_request(struct ks_wlan_private *priv,
 	if (!pp)
 		return;
 
-	pp->mib_attribute = cpu_to_le32((uint32_t)mib_attribute);
+	pp->mib_attribute = cpu_to_le32(mib_attribute);
 
 	send_request_to_device(priv, pp, hif_align_size(sizeof(*pp)));
 }
-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 13/23] staging: ks7010: avoid no needed cast in ks_wlan_cap
  2018-05-13 18:35 [PATCH 00/23] staging: ks7010: some new cleanups Sergio Paracuellos
                   ` (11 preceding siblings ...)
  2018-05-13 18:35 ` [PATCH 12/23] staging: ks7010: change parameter type in hostif_mib_get_request Sergio Paracuellos
@ 2018-05-13 18:35 ` Sergio Paracuellos
  2018-05-13 18:35 ` [PATCH 14/23] staging: ks7010: use u16 as cast type in hostif_start_request Sergio Paracuellos
                   ` (9 subsequent siblings)
  22 siblings, 0 replies; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-13 18:35 UTC (permalink / raw)
  To: gregkh; +Cc: driverdev-devel, wsa

In ks_wlan_cap there is a cast to uint16_t to use cpu_to_le16
with variable 'capability' which is already defined as u16.
Avoid this cast to clean code.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/ks7010/ks_hostif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
index 9724a48..adc6ccf 100644
--- a/drivers/staging/ks7010/ks_hostif.c
+++ b/drivers/staging/ks7010/ks_hostif.c
@@ -1275,7 +1275,7 @@ static __le16 ks_wlan_cap(struct ks_wlan_private *priv)
 		capability &= ~(WLAN_CAPABILITY_DSSS_OFDM);
 	}
 
-	return cpu_to_le16((uint16_t)capability);
+	return cpu_to_le16(capability);
 }
 
 static void init_request(struct ks_wlan_private *priv,
-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 14/23] staging: ks7010: use u16 as cast type in hostif_start_request
  2018-05-13 18:35 [PATCH 00/23] staging: ks7010: some new cleanups Sergio Paracuellos
                   ` (12 preceding siblings ...)
  2018-05-13 18:35 ` [PATCH 13/23] staging: ks7010: avoid no needed cast in ks_wlan_cap Sergio Paracuellos
@ 2018-05-13 18:35 ` Sergio Paracuellos
  2018-05-13 18:35 ` [PATCH 15/23] staging: ks7010: replace casts to use type u16 in init_request Sergio Paracuellos
                   ` (8 subsequent siblings)
  22 siblings, 0 replies; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-13 18:35 UTC (permalink / raw)
  To: gregkh; +Cc: driverdev-devel, wsa

Use u16 as cast type in hostif_start_request function replacing
uint16_t which was being used.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/ks7010/ks_hostif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
index adc6ccf..ee8dcb3 100644
--- a/drivers/staging/ks7010/ks_hostif.c
+++ b/drivers/staging/ks7010/ks_hostif.c
@@ -1253,7 +1253,7 @@ void hostif_start_request(struct ks_wlan_private *priv, unsigned char mode)
 	if (!pp)
 		return;
 
-	pp->mode = cpu_to_le16((uint16_t)mode);
+	pp->mode = cpu_to_le16((u16)mode);
 
 	send_request_to_device(priv, pp, hif_align_size(sizeof(*pp)));
 
-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 15/23] staging: ks7010: replace casts to use type u16 in init_request
  2018-05-13 18:35 [PATCH 00/23] staging: ks7010: some new cleanups Sergio Paracuellos
                   ` (13 preceding siblings ...)
  2018-05-13 18:35 ` [PATCH 14/23] staging: ks7010: use u16 as cast type in hostif_start_request Sergio Paracuellos
@ 2018-05-13 18:35 ` Sergio Paracuellos
  2018-05-13 18:35 ` [PATCH 16/23] staging: ks7010: use u16 as type for casting in hostif_ps_adhoc_set_request Sergio Paracuellos
                   ` (7 subsequent siblings)
  22 siblings, 0 replies; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-13 18:35 UTC (permalink / raw)
  To: gregkh; +Cc: driverdev-devel, wsa

There are soem assignments inside init_request function which
are being used together with cpu_to_le16 using uint16_t as cast
type. Replace all of them to use 'u16' instead.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/ks7010/ks_hostif.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
index ee8dcb3..2681e2e 100644
--- a/drivers/staging/ks7010/ks_hostif.c
+++ b/drivers/staging/ks7010/ks_hostif.c
@@ -1281,9 +1281,9 @@ static __le16 ks_wlan_cap(struct ks_wlan_private *priv)
 static void init_request(struct ks_wlan_private *priv,
 			 struct hostif_request *req)
 {
-	req->phy_type = cpu_to_le16((uint16_t)(priv->reg.phy_type));
-	req->cts_mode = cpu_to_le16((uint16_t)(priv->reg.cts_mode));
-	req->scan_type = cpu_to_le16((uint16_t)(priv->reg.scan_type));
+	req->phy_type = cpu_to_le16((u16)(priv->reg.phy_type));
+	req->cts_mode = cpu_to_le16((u16)(priv->reg.cts_mode));
+	req->scan_type = cpu_to_le16((u16)(priv->reg.scan_type));
 	req->rate_set.size = priv->reg.rate_set.size;
 	req->capability = ks_wlan_cap(priv);
 	memcpy(&req->rate_set.body[0], &priv->reg.rate_set.body[0],
-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 16/23] staging: ks7010: use u16 as type for casting in hostif_ps_adhoc_set_request
  2018-05-13 18:35 [PATCH 00/23] staging: ks7010: some new cleanups Sergio Paracuellos
                   ` (14 preceding siblings ...)
  2018-05-13 18:35 ` [PATCH 15/23] staging: ks7010: replace casts to use type u16 in init_request Sergio Paracuellos
@ 2018-05-13 18:35 ` Sergio Paracuellos
  2018-05-13 18:35 ` [PATCH 17/23] staging: ks7010: replace cast type in assignments in hostif_infrastructure_set_request Sergio Paracuellos
                   ` (6 subsequent siblings)
  22 siblings, 0 replies; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-13 18:35 UTC (permalink / raw)
  To: gregkh; +Cc: driverdev-devel, wsa

There is an assignment inside hostif_ps_adhoc_set_request function
which is being used together with cpu_to_le16 using uint16_t as cast
type. Replace it to use 'u16' instead.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/ks7010/ks_hostif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
index 2681e2e..6d4702e 100644
--- a/drivers/staging/ks7010/ks_hostif.c
+++ b/drivers/staging/ks7010/ks_hostif.c
@@ -1300,7 +1300,7 @@ void hostif_ps_adhoc_set_request(struct ks_wlan_private *priv)
 		return;
 
 	init_request(priv, &pp->request);
-	pp->channel = cpu_to_le16((uint16_t)(priv->reg.channel));
+	pp->channel = cpu_to_le16((u16)(priv->reg.channel));
 
 	send_request_to_device(priv, pp, hif_align_size(sizeof(*pp)));
 }
-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 17/23] staging: ks7010: replace cast type in assignments in hostif_infrastructure_set_request
  2018-05-13 18:35 [PATCH 00/23] staging: ks7010: some new cleanups Sergio Paracuellos
                   ` (15 preceding siblings ...)
  2018-05-13 18:35 ` [PATCH 16/23] staging: ks7010: use u16 as type for casting in hostif_ps_adhoc_set_request Sergio Paracuellos
@ 2018-05-13 18:35 ` Sergio Paracuellos
  2018-05-13 18:35 ` [PATCH 18/23] staging: ks7010: replace cast type in assignment in hostif_adhoc_set_request Sergio Paracuellos
                   ` (5 subsequent siblings)
  22 siblings, 0 replies; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-13 18:35 UTC (permalink / raw)
  To: gregkh; +Cc: driverdev-devel, wsa

There are some assignments inside hostif_infrastructure_set_request
function which are being used together with cpu_to_le16 using
uint16_t as cast type. Replace all of them to use 'u16' instead.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/ks7010/ks_hostif.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
index 6d4702e..bf410e3 100644
--- a/drivers/staging/ks7010/ks_hostif.c
+++ b/drivers/staging/ks7010/ks_hostif.c
@@ -1318,8 +1318,8 @@ void hostif_infrastructure_set_request(struct ks_wlan_private *priv, int event)
 	pp->ssid.size = priv->reg.ssid.size;
 	memcpy(&pp->ssid.body[0], &priv->reg.ssid.body[0], priv->reg.ssid.size);
 	pp->beacon_lost_count =
-	    cpu_to_le16((uint16_t)(priv->reg.beacon_lost_count));
-	pp->auth_type = cpu_to_le16((uint16_t)(priv->reg.authenticate_type));
+	    cpu_to_le16((u16)(priv->reg.beacon_lost_count));
+	pp->auth_type = cpu_to_le16((u16)(priv->reg.authenticate_type));
 
 	pp->channel_list.body[0] = 1;
 	pp->channel_list.body[1] = 8;
-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 18/23] staging: ks7010: replace cast type in assignment in hostif_adhoc_set_request
  2018-05-13 18:35 [PATCH 00/23] staging: ks7010: some new cleanups Sergio Paracuellos
                   ` (16 preceding siblings ...)
  2018-05-13 18:35 ` [PATCH 17/23] staging: ks7010: replace cast type in assignments in hostif_infrastructure_set_request Sergio Paracuellos
@ 2018-05-13 18:35 ` Sergio Paracuellos
  2018-05-13 18:35 ` [PATCH 19/23] staging: ks7010: replace cast types in assignments in hostif_phy_information_request Sergio Paracuellos
                   ` (4 subsequent siblings)
  22 siblings, 0 replies; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-13 18:35 UTC (permalink / raw)
  To: gregkh; +Cc: driverdev-devel, wsa

There is an assignment inside hostif_adhoc_set_request function
which is being used together with cpu_to_le16 using uint16_t as cast
type. Replace it to use 'u16' instead.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/ks7010/ks_hostif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
index bf410e3..b946f51 100644
--- a/drivers/staging/ks7010/ks_hostif.c
+++ b/drivers/staging/ks7010/ks_hostif.c
@@ -1354,7 +1354,7 @@ void hostif_adhoc_set_request(struct ks_wlan_private *priv)
 		return;
 
 	init_request(priv, &pp->request);
-	pp->channel = cpu_to_le16((uint16_t)(priv->reg.channel));
+	pp->channel = cpu_to_le16((u16)(priv->reg.channel));
 	pp->ssid.size = priv->reg.ssid.size;
 	memcpy(&pp->ssid.body[0], &priv->reg.ssid.body[0], priv->reg.ssid.size);
 
-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 19/23] staging: ks7010: replace cast types in assignments in hostif_phy_information_request
  2018-05-13 18:35 [PATCH 00/23] staging: ks7010: some new cleanups Sergio Paracuellos
                   ` (17 preceding siblings ...)
  2018-05-13 18:35 ` [PATCH 18/23] staging: ks7010: replace cast type in assignment in hostif_adhoc_set_request Sergio Paracuellos
@ 2018-05-13 18:35 ` Sergio Paracuellos
  2018-05-13 18:35 ` [PATCH 20/23] staging: ks7010: replace uint* type into the u* ones in hostif_bss_scan_request Sergio Paracuellos
                   ` (3 subsequent siblings)
  22 siblings, 0 replies; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-13 18:35 UTC (permalink / raw)
  To: gregkh; +Cc: driverdev-devel, wsa

There are some assignments inside hostif_phy_information_request
function which are being used together with cpu_to_le16 using
uint16_t as cast type. Replace all of them to use 'u16' instead.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/ks7010/ks_hostif.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
index b946f51..cf9e98f 100644
--- a/drivers/staging/ks7010/ks_hostif.c
+++ b/drivers/staging/ks7010/ks_hostif.c
@@ -1403,11 +1403,11 @@ void hostif_phy_information_request(struct ks_wlan_private *priv)
 		return;
 
 	if (priv->reg.phy_info_timer) {
-		pp->type = cpu_to_le16((uint16_t)TIME_TYPE);
-		pp->time = cpu_to_le16((uint16_t)(priv->reg.phy_info_timer));
+		pp->type = cpu_to_le16((u16)TIME_TYPE);
+		pp->time = cpu_to_le16((u16)(priv->reg.phy_info_timer));
 	} else {
-		pp->type = cpu_to_le16((uint16_t)NORMAL_TYPE);
-		pp->time = cpu_to_le16((uint16_t)0);
+		pp->type = cpu_to_le16((u16)NORMAL_TYPE);
+		pp->time = cpu_to_le16((u16)0);
 	}
 
 	send_request_to_device(priv, pp, hif_align_size(sizeof(*pp)));
-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 20/23] staging: ks7010: replace uint* type into the u* ones in hostif_bss_scan_request
  2018-05-13 18:35 [PATCH 00/23] staging: ks7010: some new cleanups Sergio Paracuellos
                   ` (18 preceding siblings ...)
  2018-05-13 18:35 ` [PATCH 19/23] staging: ks7010: replace cast types in assignments in hostif_phy_information_request Sergio Paracuellos
@ 2018-05-13 18:35 ` Sergio Paracuellos
  2018-05-13 18:35 ` [PATCH 21/23] staging: ks7010: change two parameter types in hostif_mic_failure_request Sergio Paracuellos
                   ` (2 subsequent siblings)
  22 siblings, 0 replies; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-13 18:35 UTC (permalink / raw)
  To: gregkh; +Cc: driverdev-devel, wsa

In function hostif_bss_scan_request parameters 'scan_ssid' and
'scan_ssid_len' are declared as uint8_t. Change them to be 'u8'
instead which is preferred. Also update two casts inside the same
function to use 'u32' instead of 'uint32_t'.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/ks7010/ks_hostif.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
index cf9e98f..5e7d3fa 100644
--- a/drivers/staging/ks7010/ks_hostif.c
+++ b/drivers/staging/ks7010/ks_hostif.c
@@ -1453,8 +1453,8 @@ void hostif_sleep_request(struct ks_wlan_private *priv,
 
 static
 void hostif_bss_scan_request(struct ks_wlan_private *priv,
-			     unsigned long scan_type, uint8_t *scan_ssid,
-			     uint8_t scan_ssid_len)
+			     unsigned long scan_type, u8 *scan_ssid,
+			     u8 scan_ssid_len)
 {
 	struct hostif_bss_scan_request *pp;
 
@@ -1464,8 +1464,8 @@ void hostif_bss_scan_request(struct ks_wlan_private *priv,
 
 	pp->scan_type = scan_type;
 
-	pp->ch_time_min = cpu_to_le32((uint32_t)110);	/* default value */
-	pp->ch_time_max = cpu_to_le32((uint32_t)130);	/* default value */
+	pp->ch_time_min = cpu_to_le32((u32)110);	/* default value */
+	pp->ch_time_max = cpu_to_le32((u32)130);	/* default value */
 	pp->channel_list.body[0] = 1;
 	pp->channel_list.body[1] = 8;
 	pp->channel_list.body[2] = 2;
-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 21/23] staging: ks7010: change two parameter types in hostif_mic_failure_request
  2018-05-13 18:35 [PATCH 00/23] staging: ks7010: some new cleanups Sergio Paracuellos
                   ` (19 preceding siblings ...)
  2018-05-13 18:35 ` [PATCH 20/23] staging: ks7010: replace uint* type into the u* ones in hostif_bss_scan_request Sergio Paracuellos
@ 2018-05-13 18:35 ` Sergio Paracuellos
  2018-05-13 18:35 ` [PATCH 22/23] staging: ks7010: use 'u16' for casts in assignments in hostif_sme_set_rsn Sergio Paracuellos
  2018-05-13 18:35 ` [PATCH 23/23] staging: ks7010: replace cast type in assignment in hostif_sme_set_pmksa Sergio Paracuellos
  22 siblings, 0 replies; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-13 18:35 UTC (permalink / raw)
  To: gregkh; +Cc: driverdev-devel, wsa

Parameters 'failure_count' and 'timer' was declared as unsigned
short and then there was being casted to u16 inside cpu_to_le16
to make the assignation. Just declare them as 'u16' and avoid
casting at all.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/ks7010/ks_hostif.c | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
index 5e7d3fa..1cb5d90 100644
--- a/drivers/staging/ks7010/ks_hostif.c
+++ b/drivers/staging/ks7010/ks_hostif.c
@@ -1501,8 +1501,7 @@ void hostif_bss_scan_request(struct ks_wlan_private *priv,
 
 static
 void hostif_mic_failure_request(struct ks_wlan_private *priv,
-				unsigned short failure_count,
-				unsigned short timer)
+				u16 failure_count, u16 timer)
 {
 	struct hostif_mic_failure_request *pp;
 
@@ -1510,8 +1509,8 @@ void hostif_mic_failure_request(struct ks_wlan_private *priv,
 	if (!pp)
 		return;
 
-	pp->failure_count = cpu_to_le16((uint16_t)failure_count);
-	pp->timer = cpu_to_le16((uint16_t)timer);
+	pp->failure_count = cpu_to_le16(failure_count);
+	pp->timer = cpu_to_le16(timer);
 
 	send_request_to_device(priv, pp, hif_align_size(sizeof(*pp)));
 }
-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 22/23] staging: ks7010: use 'u16' for casts in assignments in hostif_sme_set_rsn
  2018-05-13 18:35 [PATCH 00/23] staging: ks7010: some new cleanups Sergio Paracuellos
                   ` (20 preceding siblings ...)
  2018-05-13 18:35 ` [PATCH 21/23] staging: ks7010: change two parameter types in hostif_mic_failure_request Sergio Paracuellos
@ 2018-05-13 18:35 ` Sergio Paracuellos
  2018-05-15 14:03   ` Dan Carpenter
  2018-05-13 18:35 ` [PATCH 23/23] staging: ks7010: replace cast type in assignment in hostif_sme_set_pmksa Sergio Paracuellos
  22 siblings, 1 reply; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-13 18:35 UTC (permalink / raw)
  To: gregkh; +Cc: driverdev-devel, wsa

There are some assignments inside hostif_sme_set_rsn function
which are being used together with cpu_to_le16 using uint16_t
as cast type. Replace all of them to use 'u16' instead.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/ks7010/ks_hostif.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
index 1cb5d90..4e88767 100644
--- a/drivers/staging/ks7010/ks_hostif.c
+++ b/drivers/staging/ks7010/ks_hostif.c
@@ -1619,7 +1619,7 @@ static void hostif_sme_set_rsn(struct ks_wlan_private *priv, int type)
 
 	switch (type) {
 	case SME_RSN_UCAST_REQUEST:
-		wpa_suite.size = cpu_to_le16((uint16_t)1);
+		wpa_suite.size = cpu_to_le16((u16)1);
 		switch (priv->wpa.pairwise_suite) {
 		case IW_AUTH_CIPHER_NONE:
 			buf = (priv->wpa.version == IW_AUTH_WPA_VERSION_WPA2) ?
@@ -1682,7 +1682,7 @@ static void hostif_sme_set_rsn(struct ks_wlan_private *priv, int type)
 					       CIPHER_ID_LEN);
 		break;
 	case SME_RSN_AUTH_REQUEST:
-		wpa_suite.size = cpu_to_le16((uint16_t)1);
+		wpa_suite.size = cpu_to_le16((u16)1);
 		switch (priv->wpa.key_mgmt_suite) {
 		case IW_AUTH_KEY_MGMT_802_1X:
 			buf = (priv->wpa.version == IW_AUTH_WPA_VERSION_WPA2) ?
@@ -1721,7 +1721,7 @@ static void hostif_sme_set_rsn(struct ks_wlan_private *priv, int type)
 			(priv->wpa.version == IW_AUTH_WPA_VERSION_WPA) ?
 			 RSN_MODE_WPA : RSN_MODE_NONE;
 		rsn_mode.rsn_mode = cpu_to_le32(mode);
-		rsn_mode.rsn_capability = cpu_to_le16((uint16_t)0);
+		rsn_mode.rsn_capability = cpu_to_le16((u16)0);
 		hostif_mib_set_request_ostring(priv, LOCAL_RSN_MODE,
 					       &rsn_mode, sizeof(rsn_mode));
 		break;
-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* [PATCH 23/23] staging: ks7010: replace cast type in assignment in hostif_sme_set_pmksa
  2018-05-13 18:35 [PATCH 00/23] staging: ks7010: some new cleanups Sergio Paracuellos
                   ` (21 preceding siblings ...)
  2018-05-13 18:35 ` [PATCH 22/23] staging: ks7010: use 'u16' for casts in assignments in hostif_sme_set_rsn Sergio Paracuellos
@ 2018-05-13 18:35 ` Sergio Paracuellos
  2018-05-15 14:10   ` Dan Carpenter
  22 siblings, 1 reply; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-13 18:35 UTC (permalink / raw)
  To: gregkh; +Cc: driverdev-devel, wsa

There is an assignment inside hostif_sme_set_pmksa function
which is being used together with cpu_to_le16 using uint16_t as cast
type. Replace it to use 'u16' instead.

Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
---
 drivers/staging/ks7010/ks_hostif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/ks7010/ks_hostif.c b/drivers/staging/ks7010/ks_hostif.c
index 4e88767..66ab45a 100644
--- a/drivers/staging/ks7010/ks_hostif.c
+++ b/drivers/staging/ks7010/ks_hostif.c
@@ -1979,7 +1979,7 @@ void hostif_sme_set_pmksa(struct ks_wlan_private *priv)
 		memcpy(pmkcache.list[i].pmkid, pmk->pmkid, IW_PMKID_LEN);
 		i++;
 	}
-	pmkcache.size = cpu_to_le16((uint16_t)(priv->pmklist.size));
+	pmkcache.size = cpu_to_le16((u16)(priv->pmklist.size));
 	size = sizeof(priv->pmklist.size) +
 	       ((ETH_ALEN + IW_PMKID_LEN) * priv->pmklist.size);
 	hostif_mib_set_request_ostring(priv, LOCAL_PMK, &pmkcache, size);
-- 
2.7.4

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply related	[flat|nested] 31+ messages in thread

* Re: [PATCH 04/23] staging: ks7010: change cast from uint16_t to u16
  2018-05-13 18:35 ` [PATCH 04/23] staging: ks7010: change cast from uint16_t to u16 Sergio Paracuellos
@ 2018-05-15 13:41   ` Dan Carpenter
  2018-05-15 17:00     ` Sergio Paracuellos
  0 siblings, 1 reply; 31+ messages in thread
From: Dan Carpenter @ 2018-05-15 13:41 UTC (permalink / raw)
  To: Sergio Paracuellos; +Cc: gregkh, driverdev-devel, wsa

On Sun, May 13, 2018 at 08:35:39PM +0200, Sergio Paracuellos wrote:
> Header size and event fields of header are declared
> as __le16 and being casted using uint16_t in cpu_to_le16.
> Change cast to use preferred u16.
> 
> Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
> ---
>  drivers/staging/ks7010/ks7010_sdio.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c
> index f56db07..a51b5e8 100644
> --- a/drivers/staging/ks7010/ks7010_sdio.c
> +++ b/drivers/staging/ks7010/ks7010_sdio.c
> @@ -1061,8 +1061,8 @@ static int send_stop_request(struct sdio_func *func)
>  		return -ENOMEM;
>  
>  	size = sizeof(*pp) - sizeof(pp->header.size);
> -	pp->header.size = cpu_to_le16((uint16_t)size);
> -	pp->header.event = cpu_to_le16((uint16_t)HIF_STOP_REQ);
> +	pp->header.size = cpu_to_le16((u16)size);
> +	pp->header.event = cpu_to_le16((u16)HIF_STOP_REQ);

This is already applied, but actually it's better to just remove the
casts entirely.

regards,
dan carpenter

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [PATCH 06/23] staging: ks7010: change uint8_t casts to u8 in ks_wlan_set_rate
  2018-05-13 18:35 ` [PATCH 06/23] staging: ks7010: change uint8_t casts to u8 in ks_wlan_set_rate Sergio Paracuellos
@ 2018-05-15 13:51   ` Dan Carpenter
  0 siblings, 0 replies; 31+ messages in thread
From: Dan Carpenter @ 2018-05-15 13:51 UTC (permalink / raw)
  To: Sergio Paracuellos; +Cc: gregkh, driverdev-devel, wsa

None of these casts are required.

regards,
dan carpenter

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [PATCH 11/23] staging: ks7010: change some cast type from uint16_t to u16 in hostif_data_request
  2018-05-13 18:35 ` [PATCH 11/23] staging: ks7010: change some cast type from uint16_t to u16 in hostif_data_request Sergio Paracuellos
@ 2018-05-15 13:59   ` Dan Carpenter
  2018-05-15 17:03     ` Sergio Paracuellos
  0 siblings, 1 reply; 31+ messages in thread
From: Dan Carpenter @ 2018-05-15 13:59 UTC (permalink / raw)
  To: Sergio Paracuellos; +Cc: gregkh, driverdev-devel, wsa

We should remove a whole ball of casting really.

regards,
dan carpenter

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [PATCH 22/23] staging: ks7010: use 'u16' for casts in assignments in hostif_sme_set_rsn
  2018-05-13 18:35 ` [PATCH 22/23] staging: ks7010: use 'u16' for casts in assignments in hostif_sme_set_rsn Sergio Paracuellos
@ 2018-05-15 14:03   ` Dan Carpenter
  0 siblings, 0 replies; 31+ messages in thread
From: Dan Carpenter @ 2018-05-15 14:03 UTC (permalink / raw)
  To: Sergio Paracuellos; +Cc: gregkh, driverdev-devel, wsa

On Sun, May 13, 2018 at 08:35:57PM +0200, Sergio Paracuellos wrote:
> @@ -1619,7 +1619,7 @@ static void hostif_sme_set_rsn(struct ks_wlan_private *priv, int type)
>  
>  	switch (type) {
>  	case SME_RSN_UCAST_REQUEST:
> -		wpa_suite.size = cpu_to_le16((uint16_t)1);
> +		wpa_suite.size = cpu_to_le16((u16)1);

Lol...

regards,
dan carpenter

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [PATCH 23/23] staging: ks7010: replace cast type in assignment in hostif_sme_set_pmksa
  2018-05-13 18:35 ` [PATCH 23/23] staging: ks7010: replace cast type in assignment in hostif_sme_set_pmksa Sergio Paracuellos
@ 2018-05-15 14:10   ` Dan Carpenter
  0 siblings, 0 replies; 31+ messages in thread
From: Dan Carpenter @ 2018-05-15 14:10 UTC (permalink / raw)
  To: Sergio Paracuellos; +Cc: gregkh, driverdev-devel, wsa

cpu_to_le16() already has a cast to u16 built in, so the cast is never
required.

Generally, the reason that you would cast something to a type smaller
than int is when you want to truncate away the high bits.  But if you're
dealing with sizes and you truncate away bits, that's pretty dangerous.
Really the casts are just for playing pretend, but it looks like we're
doing something a bit scary with knives.

regards,
dan carpenter

_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [PATCH 04/23] staging: ks7010: change cast from uint16_t to u16
  2018-05-15 13:41   ` Dan Carpenter
@ 2018-05-15 17:00     ` Sergio Paracuellos
  0 siblings, 0 replies; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-15 17:00 UTC (permalink / raw)
  To: Dan Carpenter; +Cc: Greg KH, driverdev-devel, wsa

On Tue, May 15, 2018 at 3:41 PM, Dan Carpenter <dan.carpenter@oracle.com> wrote:
> On Sun, May 13, 2018 at 08:35:39PM +0200, Sergio Paracuellos wrote:
>> Header size and event fields of header are declared
>> as __le16 and being casted using uint16_t in cpu_to_le16.
>> Change cast to use preferred u16.
>>
>> Signed-off-by: Sergio Paracuellos <sergio.paracuellos@gmail.com>
>> ---
>>  drivers/staging/ks7010/ks7010_sdio.c | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c
>> index f56db07..a51b5e8 100644
>> --- a/drivers/staging/ks7010/ks7010_sdio.c
>> +++ b/drivers/staging/ks7010/ks7010_sdio.c
>> @@ -1061,8 +1061,8 @@ static int send_stop_request(struct sdio_func *func)
>>               return -ENOMEM;
>>
>>       size = sizeof(*pp) - sizeof(pp->header.size);
>> -     pp->header.size = cpu_to_le16((uint16_t)size);
>> -     pp->header.event = cpu_to_le16((uint16_t)HIF_STOP_REQ);
>> +     pp->header.size = cpu_to_le16((u16)size);
>> +     pp->header.event = cpu_to_le16((u16)HIF_STOP_REQ);
>
> This is already applied, but actually it's better to just remove the
> casts entirely.

I'll remove them in next series.

Thanks,
    Sergio Paracuellos

>
> regards,
> dan carpenter
>
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: [PATCH 11/23] staging: ks7010: change some cast type from uint16_t to u16 in hostif_data_request
  2018-05-15 13:59   ` Dan Carpenter
@ 2018-05-15 17:03     ` Sergio Paracuellos
  0 siblings, 0 replies; 31+ messages in thread
From: Sergio Paracuellos @ 2018-05-15 17:03 UTC (permalink / raw)
  To: Dan Carpenter; +Cc: Greg KH, driverdev-devel, wsa

On Tue, May 15, 2018 at 3:59 PM, Dan Carpenter <dan.carpenter@oracle.com> wrote:
> We should remove a whole ball of casting really.

I will.

>
> regards,
> dan carpenter
>

Best regards,
    Sergio Paracuellos
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2018-05-15 17:03 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-13 18:35 [PATCH 00/23] staging: ks7010: some new cleanups Sergio Paracuellos
2018-05-13 18:35 ` [PATCH 01/23] staging: ks7010: remove not used definition WPA_CAPABILITY_PREAUTH Sergio Paracuellos
2018-05-13 18:35 ` [PATCH 02/23] staging: ks7010: remove no necessary blank line Sergio Paracuellos
2018-05-13 18:35 ` [PATCH 03/23] staging: ks7010: replace unsigned char type with u8 Sergio Paracuellos
2018-05-13 18:35 ` [PATCH 04/23] staging: ks7010: change cast from uint16_t to u16 Sergio Paracuellos
2018-05-15 13:41   ` Dan Carpenter
2018-05-15 17:00     ` Sergio Paracuellos
2018-05-13 18:35 ` [PATCH 05/23] staging: ks7010: change parameter type in ks_wlan_hw_rx function Sergio Paracuellos
2018-05-13 18:35 ` [PATCH 06/23] staging: ks7010: change uint8_t casts to u8 in ks_wlan_set_rate Sergio Paracuellos
2018-05-15 13:51   ` Dan Carpenter
2018-05-13 18:35 ` [PATCH 07/23] staging: ks7010: replace uint8_t with u8 in ks_wlan_set_tx_gain Sergio Paracuellos
2018-05-13 18:35 ` [PATCH 08/23] staging: ks7010: replace uint8_t with u8 in ks_wlan_set_rx_gain Sergio Paracuellos
2018-05-13 18:35 ` [PATCH 09/23] staging: ks7010: replace not standard uint type to unsigned int Sergio Paracuellos
2018-05-13 18:35 ` [PATCH 10/23] staging: ks7010: use u16 as type for casting in hostif_data_indication_wpa Sergio Paracuellos
2018-05-13 18:35 ` [PATCH 11/23] staging: ks7010: change some cast type from uint16_t to u16 in hostif_data_request Sergio Paracuellos
2018-05-15 13:59   ` Dan Carpenter
2018-05-15 17:03     ` Sergio Paracuellos
2018-05-13 18:35 ` [PATCH 12/23] staging: ks7010: change parameter type in hostif_mib_get_request Sergio Paracuellos
2018-05-13 18:35 ` [PATCH 13/23] staging: ks7010: avoid no needed cast in ks_wlan_cap Sergio Paracuellos
2018-05-13 18:35 ` [PATCH 14/23] staging: ks7010: use u16 as cast type in hostif_start_request Sergio Paracuellos
2018-05-13 18:35 ` [PATCH 15/23] staging: ks7010: replace casts to use type u16 in init_request Sergio Paracuellos
2018-05-13 18:35 ` [PATCH 16/23] staging: ks7010: use u16 as type for casting in hostif_ps_adhoc_set_request Sergio Paracuellos
2018-05-13 18:35 ` [PATCH 17/23] staging: ks7010: replace cast type in assignments in hostif_infrastructure_set_request Sergio Paracuellos
2018-05-13 18:35 ` [PATCH 18/23] staging: ks7010: replace cast type in assignment in hostif_adhoc_set_request Sergio Paracuellos
2018-05-13 18:35 ` [PATCH 19/23] staging: ks7010: replace cast types in assignments in hostif_phy_information_request Sergio Paracuellos
2018-05-13 18:35 ` [PATCH 20/23] staging: ks7010: replace uint* type into the u* ones in hostif_bss_scan_request Sergio Paracuellos
2018-05-13 18:35 ` [PATCH 21/23] staging: ks7010: change two parameter types in hostif_mic_failure_request Sergio Paracuellos
2018-05-13 18:35 ` [PATCH 22/23] staging: ks7010: use 'u16' for casts in assignments in hostif_sme_set_rsn Sergio Paracuellos
2018-05-15 14:03   ` Dan Carpenter
2018-05-13 18:35 ` [PATCH 23/23] staging: ks7010: replace cast type in assignment in hostif_sme_set_pmksa Sergio Paracuellos
2018-05-15 14:10   ` Dan Carpenter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.