aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorSergio Paracuellos <sergio.paracuellos@gmail.com>2018-03-26 18:52:47 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-03-28 13:53:09 +0200
commitd1c4520dafba7d1a424940f50d2805f1fb9e5cac (patch)
tree0c5f1d463247053f2b5baa409c65809133209a7c /drivers/staging
parentstaging: ks7010: Fix spelling mistakes. (diff)
downloadlinux-dev-d1c4520dafba7d1a424940f50d2805f1fb9e5cac.tar.xz
linux-dev-d1c4520dafba7d1a424940f50d2805f1fb9e5cac.zip
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: Sergio Paracuellos <sergio.paracuellos@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/ks7010/ks_wlan.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/ks7010/ks_wlan.h b/drivers/staging/ks7010/ks_wlan.h
index 626d2d60f464..f1f6c88adcca 100644
--- a/drivers/staging/ks7010/ks_wlan.h
+++ b/drivers/staging/ks7010/ks_wlan.h
@@ -87,7 +87,7 @@ enum {
#define SME_WEP_VAL2 BIT(6)
#define SME_WEP_VAL3 BIT(7)
#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_MULTICAST BIT(10)
#define SME_RSN_UNICAST BIT(11)