[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1489410866-19639-2-git-send-email-gi-oh.kim@profitbricks.com>
Date: Mon, 13 Mar 2017 14:14:25 +0100
From: Gioh Kim <gi-oh.kim@...fitbricks.com>
To: gregkh@...uxfoundation.org, sergio.paracuellos@...il.com
Cc: devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
gurugio@...mail.net, Gioh Kim <gi-oh.kim@...fitbricks.com>
Subject: [PATCH 1/2] staging: wlan-ng: introduce a macro read_u16
read_u16 is wrapper of le16_to_cpu to read u16 variable,
rather than __le16.
Signed-off-by: Gioh Kim <gi-oh.kim@...fitbricks.com>
---
drivers/staging/wlan-ng/prism2mgmt.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/staging/wlan-ng/prism2mgmt.h b/drivers/staging/wlan-ng/prism2mgmt.h
index 88b979f..97ede25 100644
--- a/drivers/staging/wlan-ng/prism2mgmt.h
+++ b/drivers/staging/wlan-ng/prism2mgmt.h
@@ -63,6 +63,9 @@
extern int prism2_reset_holdtime;
extern int prism2_reset_settletime;
+#define read_u16(x) ({ u32 __r = (u32)le16_to_cpu((__force __le16)(x)); \
+ __r; })
+
u32 prism2sta_ifstate(struct wlandevice *wlandev, u32 ifstate);
void prism2sta_ev_info(struct wlandevice *wlandev,
--
2.5.0
Powered by blists - more mailing lists