From e96766958c914f1240317c967bb322cd3731fb17 Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Tue, 10 Apr 2012 14:10:28 -0700 Subject: iwlwifi: dynamically determine lib_ops Having the pointer to lib_ops in the config makes it impossible to split the driver into different modules. Determine the ops based on the device family enumeration to get rid of the direct pointer. Also move all the opmode specific code from the iwl-[1256]000.c files into a new file iwl-agn-devices.c so that the former only have configuration data now. Signed-off-by: Johannes Berg Signed-off-by: Wey-Yi Guy Signed-off-by: John W. Linville --- drivers/net/wireless/iwlwifi/iwl-config.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'drivers/net/wireless/iwlwifi/iwl-config.h') diff --git a/drivers/net/wireless/iwlwifi/iwl-config.h b/drivers/net/wireless/iwlwifi/iwl-config.h index bdf2a776789b..47bfd5e59575 100644 --- a/drivers/net/wireless/iwlwifi/iwl-config.h +++ b/drivers/net/wireless/iwlwifi/iwl-config.h @@ -66,8 +66,6 @@ #include #include -struct iwl_lib_ops; - enum iwl_device_family { IWL_DEVICE_FAMILY_UNDEFINED, @@ -212,7 +210,6 @@ struct iwl_cfg { u8 valid_rx_ant; u16 eeprom_ver; u16 eeprom_calib_ver; - const struct iwl_lib_ops *lib; /* params not likely to change within a device family */ const struct iwl_base_params *base_params; /* params likely to change within a device family */ -- cgit v1.2.3