diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2008-12-18 21:37:09 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 15:58:56 -0500 |
commit | a3139c5956702c9ff957ac9fe2d902de355b063e (patch) | |
tree | 50df5afc7b5867b13421c6be19ff1e020c18c745 /drivers/net/wireless/iwlwifi/iwl-commands.h | |
parent | 40b8ec0bfa2d96c9feae2bc1596e9b427c77b8da (diff) |
iwl3945: Remove DRV_NAME dependenies
As DRV_NAME is defined in 2 different header files, including both is not
possible.
This patch defines this constant from iwl3945-base.c and iwl-agn.c. It also
redefines the IWL_ERROR and IWL_WARNING macros to use dev_printk, as the
IWL_DEBUG_* macros do.
Signed-off-by: Samuel Ortiz <samuel.ortiz@intel.com>
Acked-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-commands.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-commands.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-commands.h b/drivers/net/wireless/iwlwifi/iwl-commands.h index 958c4a70d515..6a2445da22ff 100644 --- a/drivers/net/wireless/iwlwifi/iwl-commands.h +++ b/drivers/net/wireless/iwlwifi/iwl-commands.h | |||
@@ -69,6 +69,8 @@ | |||
69 | #ifndef __iwl_commands_h__ | 69 | #ifndef __iwl_commands_h__ |
70 | #define __iwl_commands_h__ | 70 | #define __iwl_commands_h__ |
71 | 71 | ||
72 | struct iwl_priv; | ||
73 | |||
72 | /* uCode version contains 4 values: Major/Minor/API/Serial */ | 74 | /* uCode version contains 4 values: Major/Minor/API/Serial */ |
73 | #define IWL_UCODE_MAJOR(ver) (((ver) & 0xFF000000) >> 24) | 75 | #define IWL_UCODE_MAJOR(ver) (((ver) & 0xFF000000) >> 24) |
74 | #define IWL_UCODE_MINOR(ver) (((ver) & 0x00FF0000) >> 16) | 76 | #define IWL_UCODE_MINOR(ver) (((ver) & 0x00FF0000) >> 16) |
@@ -3455,6 +3457,6 @@ struct iwl_rx_packet { | |||
3455 | } u; | 3457 | } u; |
3456 | } __attribute__ ((packed)); | 3458 | } __attribute__ ((packed)); |
3457 | 3459 | ||
3458 | int iwl_agn_check_rxon_cmd(struct iwl_rxon_cmd *rxon); | 3460 | int iwl_agn_check_rxon_cmd(struct iwl_priv *priv); |
3459 | 3461 | ||
3460 | #endif /* __iwl_commands_h__ */ | 3462 | #endif /* __iwl_commands_h__ */ |