Commit ef0ef9c8 authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville

iwlwifi: remove priv from shared

Finally nothing needs to access priv
from shared any more, so remove it.
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
Signed-off-by: default avatarWey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent ecdb975c
...@@ -1205,7 +1205,6 @@ static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans, ...@@ -1205,7 +1205,6 @@ static struct iwl_op_mode *iwl_op_mode_dvm_start(struct iwl_trans *trans,
op_mode->ops = &iwl_dvm_ops; op_mode->ops = &iwl_dvm_ops;
priv = IWL_OP_MODE_GET_DVM(op_mode); priv = IWL_OP_MODE_GET_DVM(op_mode);
priv->shrd = trans->shrd; priv->shrd = trans->shrd;
priv->shrd->priv = priv;
priv->fw = fw; priv->fw = fw;
/* TODO: remove fw from shared data later */ /* TODO: remove fw from shared data later */
priv->shrd->fw = fw; priv->shrd->fw = fw;
......
...@@ -378,7 +378,6 @@ struct iwl_shared { ...@@ -378,7 +378,6 @@ struct iwl_shared {
u8 valid_contexts; u8 valid_contexts;
const struct iwl_cfg *cfg; const struct iwl_cfg *cfg;
struct iwl_priv *priv;
struct iwl_trans *trans; struct iwl_trans *trans;
void *drv; void *drv;
struct iwl_hw_params hw_params; struct iwl_hw_params hw_params;
...@@ -400,7 +399,6 @@ struct iwl_shared { ...@@ -400,7 +399,6 @@ struct iwl_shared {
}; };
/*Whatever _m is (iwl_trans, iwl_priv, these macros will work */ /*Whatever _m is (iwl_trans, iwl_priv, these macros will work */
#define priv(_m) ((_m)->shrd->priv)
#define cfg(_m) ((_m)->shrd->cfg) #define cfg(_m) ((_m)->shrd->cfg)
#define trans(_m) ((_m)->shrd->trans) #define trans(_m) ((_m)->shrd->trans)
#define hw_params(_m) ((_m)->shrd->hw_params) #define hw_params(_m) ((_m)->shrd->hw_params)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment