diff options
author | Liad Kaufman <liad.kaufman@intel.com> | 2014-09-07 11:41:05 +0300 |
---|---|---|
committer | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2014-09-14 12:56:39 +0300 |
commit | c2a2b28bb7fbcb8e0e11b84714992750bba7b699 (patch) | |
tree | 18d9abb17920a835f7258eb3a2e36280271df612 /drivers/net/wireless/iwlwifi/iwl-csr.h | |
parent | 3a736bcb18f797996064cf18f4eecc4b3e46d39a (diff) | |
download | linux-c2a2b28bb7fbcb8e0e11b84714992750bba7b699.tar.gz linux-c2a2b28bb7fbcb8e0e11b84714992750bba7b699.tar.bz2 linux-c2a2b28bb7fbcb8e0e11b84714992750bba7b699.zip |
iwlwifi: make hw rev checking more readable
Rather than ANDing with a mask - use existing macros, which
are more readable.
Signed-off-by: Liad Kaufman <liad.kaufman@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-csr.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-csr.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-csr.h b/drivers/net/wireless/iwlwifi/iwl-csr.h index 23d059af6476..3f6f015285e5 100644 --- a/drivers/net/wireless/iwlwifi/iwl-csr.h +++ b/drivers/net/wireless/iwlwifi/iwl-csr.h @@ -295,6 +295,16 @@ #define CSR_HW_REV_DASH(_val) (((_val) & 0x0000003) >> 0) #define CSR_HW_REV_STEP(_val) (((_val) & 0x000000C) >> 2) + +/** + * hw_rev values + */ +enum { + SILICON_A_STEP = 0, + SILICON_B_STEP, +}; + + #define CSR_HW_REV_TYPE_MSK (0x000FFF0) #define CSR_HW_REV_TYPE_5300 (0x0000020) #define CSR_HW_REV_TYPE_5350 (0x0000030) |