All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: ks7010: Change capability field to __le16
@ 2017-04-18 18:24 Johan Svensson
  2017-04-18 18:38 ` Greg KH
  2017-04-28  9:43 ` Greg KH
  0 siblings, 2 replies; 6+ messages in thread
From: Johan Svensson @ 2017-04-18 18:24 UTC (permalink / raw)
  To: gregkh, wsa, driverdev-devel; +Cc: johan.svensson692

Change capability field to __le16 in struct ap_info_t,
struct link_ap_info_t, and struct local_ap_t.
This fixes a sparse warning.

Signed-off-by: Johan Svensson <johan.svensson692@gmail.com>
---
 drivers/staging/ks7010/ks_hostif.h | 4 ++--
 drivers/staging/ks7010/ks_wlan.h   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/staging/ks7010/ks_hostif.h b/drivers/staging/ks7010/ks_hostif.h
index 30c49b6..e7f814f 100644
--- a/drivers/staging/ks7010/ks_hostif.h
+++ b/drivers/staging/ks7010/ks_hostif.h
@@ -284,7 +284,7 @@ struct ap_info_t {
 	uint8_t noise;	/* +08 */
 	uint8_t pad0;	/* +09 */
 	uint16_t beacon_period;	/* +10 */
-	uint16_t capability;	/* +12 */
+	__le16 capability;	/* +12 */
 #define BSS_CAP_ESS             (1<<0)
 #define BSS_CAP_IBSS            (1<<1)
 #define BSS_CAP_CF_POLABLE      (1<<2)
@@ -311,7 +311,7 @@ struct link_ap_info_t {
 	uint8_t noise;	/* +08 */
 	uint8_t pad0;	/* +09 */
 	uint16_t beacon_period;	/* +10 */
-	uint16_t capability;	/* +12 */
+	__le16 capability;	/* +12 */
 	struct rate_set8_t rate_set;	/* +14 */
 	struct FhParms_t fh_parameter;	/* +24 */
 	struct DsParms_t ds_parameter;	/* +29 */
diff --git a/drivers/staging/ks7010/ks_wlan.h b/drivers/staging/ks7010/ks_wlan.h
index 9ab80e1..a4655a0 100644
--- a/drivers/staging/ks7010/ks_wlan.h
+++ b/drivers/staging/ks7010/ks_wlan.h
@@ -243,7 +243,7 @@ struct local_ap_t {
 		u8 body[16];
 		u8 rate_pad;
 	} rate_set;
-	u16 capability;
+	__le16 capability;
 	u8 channel;
 	u8 noise;
 	struct rsn_ie_t wpa_ie;
-- 
2.7.4

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

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

end of thread, other threads:[~2017-04-28  9:44 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-18 18:24 [PATCH] staging: ks7010: Change capability field to __le16 Johan Svensson
2017-04-18 18:38 ` Greg KH
2017-04-20 19:02   ` Johan Svensson
2017-04-24 10:44     ` Tobin C. Harding
2017-04-25 21:11       ` Tobin C. Harding
2017-04-28  9:43 ` Greg KH

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.