iwlwifi: avoid device type checking in generic code
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 19 Mar 2010 18:54:49 +0000 (11:54 -0700)
committerReinette Chatre <reinette.chatre@intel.com>
Thu, 25 Mar 2010 18:22:32 +0000 (11:22 -0700)
commitd28667f871991e0eea983b398421b8db2c8bdf8c
treebaeb7ca506966102456cfb3363a07bf377910173
parent6e8cc38d5b05bb812f89a35bd9bf52405e67d0df
iwlwifi: avoid device type checking in generic code

Avoid checking for specified device type to perform certain function,
switch to .cfg approach as more generic and better implementation
method.

Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
drivers/net/wireless/iwlwifi/iwl-4965.c
drivers/net/wireless/iwlwifi/iwl-core.c
drivers/net/wireless/iwlwifi/iwl-core.h
drivers/net/wireless/iwlwifi/iwl-scan.c