aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-bus.h
diff options
context:
space:
mode:
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>2011-07-11 04:18:48 -0400
committerWey-Yi Guy <wey-yi.w.guy@intel.com>2011-07-21 10:30:07 -0400
commitc1c81401de30448baf35ec2f689ad21faffb0536 (patch)
tree872aba1888985f591444fff76fce41193f37922e /drivers/net/wireless/iwlwifi/iwl-bus.h
parentd593411084a56124aa9d80aafa15db8463b2d8f7 (diff)
iwlagn: iwl_bus holds drv_data as void * instead of iwl_priv
The price to pay is the access to the log system. Therefore logs from bus layer are sent by dev_printk instead of IWL_XXXX. Rename bus->priv to bus->drv_data to make the separation even clearer. Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com> Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-bus.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-bus.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-bus.h b/drivers/net/wireless/iwlwifi/iwl-bus.h
index fef62e6c2c8..f3ee1c0c004 100644
--- a/drivers/net/wireless/iwlwifi/iwl-bus.h
+++ b/drivers/net/wireless/iwlwifi/iwl-bus.h
@@ -67,10 +67,9 @@ struct iwl_bus;
67 67
68/** 68/**
69 * struct iwl_bus_ops - bus specific operations 69 * struct iwl_bus_ops - bus specific operations
70
71 * @get_pm_support: must returns true if the bus can go to sleep 70 * @get_pm_support: must returns true if the bus can go to sleep
72 * @apm_config: will be called during the config of the APM configuration 71 * @apm_config: will be called during the config of the APM configuration
73 * @set_drv_data: set the priv pointer to the bus layer 72 * @set_drv_data: set the drv_data pointer to the bus layer
74 * @get_hw_id: prints the hw_id in the provided buffer 73 * @get_hw_id: prints the hw_id in the provided buffer
75 * @write8: write a byte to register at offset ofs 74 * @write8: write a byte to register at offset ofs
76 * @write32: write a dword to register at offset ofs 75 * @write32: write a dword to register at offset ofs
@@ -88,9 +87,7 @@ struct iwl_bus_ops {
88 87
89struct iwl_bus { 88struct iwl_bus {
90 /* Common data to all buses */ 89 /* Common data to all buses */
91 90 void *drv_data; /* driver's context */
92 /*TODO: priv should be void * */
93 struct iwl_priv *priv; /* driver's context */
94 struct device *dev; 91 struct device *dev;
95 struct iwl_bus_ops *ops; 92 struct iwl_bus_ops *ops;
96 93