iwlwifi: transport holds its pointer to the config
[GitHub/mt8127/android_kernel_alcatel_ttab.git] / drivers / net / wireless / iwlwifi / iwl-trans.h
index f3496a0490f0a1d194b3d1ffbedf30cb432b1dd9..80e33997a9e1f83ec8151c86daac6467d2e2b15a 100644 (file)
@@ -429,6 +429,7 @@ enum iwl_trans_state {
  * @ops - pointer to iwl_trans_ops
  * @op_mode - pointer to the op_mode
  * @shrd - pointer to iwl_shared which holds shared data from the upper layer
+ * @cfg - pointer to the configuration
  * @reg_lock - protect hw register access
  * @dev - pointer to struct device * that represents the device
  * @hw_id: a u32 with the ID of the device / subdevice.
@@ -441,6 +442,7 @@ struct iwl_trans {
        const struct iwl_trans_ops *ops;
        struct iwl_op_mode *op_mode;
        struct iwl_shared *shrd;
+       const struct iwl_cfg *cfg;
        enum iwl_trans_state state;
        spinlock_t reg_lock;
 
@@ -625,12 +627,14 @@ struct pci_device_id;
 extern const struct iwl_trans_ops trans_ops_pcie;
 struct iwl_trans *iwl_trans_pcie_alloc(struct iwl_shared *shrd,
                                       struct pci_dev *pdev,
-                                      const struct pci_device_id *ent);
+                                      const struct pci_device_id *ent,
+                                      const struct iwl_cfg *cfg);
 int __must_check iwl_pci_register_driver(void);
 void iwl_pci_unregister_driver(void);
 
 extern const struct iwl_trans_ops trans_ops_idi;
 struct iwl_trans *iwl_trans_idi_alloc(struct iwl_shared *shrd,
                                      void *pdev_void,
-                                     const void *ent_void);
+                                     const void *ent_void,
+                                     const struct iwl_cfg *cfg);
 #endif /* __iwl_trans_h__ */