提交 d1c4520d 编写于 作者: S Sergio Paracuellos 提交者: Greg Kroah-Hartman

staging: ks7010: use GENMASK instead of custom defines in SME_WEP_VAL_MASK

This commits replaces custom defines that were been used
to define a mask using GENMASK macro from linux bitops
header file.

With this change the "WARNING: line over 80 characters"
warning message reported by checkpatch script is also
removed.
Signed-off-by: NSergio Paracuellos <sergio.paracuellos@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 55189ccb
...@@ -87,7 +87,7 @@ enum { ...@@ -87,7 +87,7 @@ enum {
#define SME_WEP_VAL2 BIT(6) #define SME_WEP_VAL2 BIT(6)
#define SME_WEP_VAL3 BIT(7) #define SME_WEP_VAL3 BIT(7)
#define SME_WEP_VAL4 BIT(8) #define SME_WEP_VAL4 BIT(8)
#define SME_WEP_VAL_MASK (SME_WEP_VAL1 | SME_WEP_VAL2 | SME_WEP_VAL3 | SME_WEP_VAL4) #define SME_WEP_VAL_MASK GENMASK(8, 5)
#define SME_RSN BIT(9) #define SME_RSN BIT(9)
#define SME_RSN_MULTICAST BIT(10) #define SME_RSN_MULTICAST BIT(10)
#define SME_RSN_UNICAST BIT(11) #define SME_RSN_UNICAST BIT(11)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册