iwlwifi: Change disable calibration bit-set to enum
authorDavid Spinadel <david.spinadel@intel.com>
Mon, 26 Mar 2012 05:30:54 +0000 (07:30 +0200)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Wed, 18 Apr 2012 14:31:46 +0000 (07:31 -0700)
Changed disable calibration bit field defines to enum.

Signed-off-by: David Spinadel <david.spinadel@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
drivers/net/wireless/iwlwifi/iwl-dev.h

index 22386a71a7900308b93c096bca7189b9480d7fa9..f3eccf6709d1a9221e51cd783af9f9e663fac869 100644 (file)
@@ -742,12 +742,15 @@ struct iwl_wipan_noa_data {
 };
 
 /* Calibration disabling bit mask */
-#define IWL_SENSITIVITY_CALIB_DISABLED BIT(1)
-#define IWL_CHAIN_NOISE_CALIB_DISABLED BIT(2)
-#define IWL_TX_POWER_CALIB_DISABLED    BIT(3)
+enum {
+       IWL_CALIB_ENABLE_ALL                    = 0,
+
+       IWL_SENSITIVITY_CALIB_DISABLED          = BIT(0),
+       IWL_CHAIN_NOISE_CALIB_DISABLED          = BIT(1),
+       IWL_TX_POWER_CALIB_DISABLED             = BIT(2),
 
-#define IWL_CALIB_ENABLE_ALL   0
-#define IWL_CALIB_DISABLE_ALL  0xFFFFFFFF
+       IWL_CALIB_DISABLE_ALL                   = 0xFFFFFFFF,
+};
 
 #define IWL_OP_MODE_GET_DVM(_iwl_op_mode) \
        ((struct iwl_priv *) ((_iwl_op_mode)->op_mode_specific))